当前位置:网站首页>NETCORE 3.1 solves cross domain problems
NETCORE 3.1 solves cross domain problems
2022-07-07 09:27:00 【-Coffee-】
stay Startup Class
(1)ConfigureServices Function :
// Configure cross domain processing , Allow all sources
services.AddCors(options =>
options.AddPolicy("all", p => p.AllowAnyOrigin().AllowAnyMethod().AllowAnyHeader())
);(2) Configure Function :
app.UseCors("all");ok , Perfect solution
边栏推荐
- Where is the answer? action config/Interceptor/class/servlet
- Leetcode question brushing record (array) combination sum, combination sum II
- esp8266使用TF卡并读写数据(基于arduino)
- SAP MM STO单据的外向交货单创建后新加ITEM?
- (3/8)枚举的不当用法 之 方法参数(二)
- 12、 Sort
- MySql数据库-事务-学习笔记
- How long does the PMP usually need to prepare for the exam in advance?
- Install pyqt5 and Matplotlib module
- 十二、排序
猜你喜欢

Netease Cloud Wechat applet

网易云微信小程序

Difference between interface iterator and iteratable

Summary of PMP learning materials

Jmeters use

【SVN】SVN是什么?怎么使用?

華為HCIP-DATACOM-Core_03day

软件建模与分析

Run can start normally, and debug doesn't start or report an error, which seems to be stuck

Yapi test plug-in -- cross request
随机推荐
C language pointer (Part 1)
Leetcode刷题记录(数组)组合总和、组合总和 II
Summary of PMP learning materials
VSCode+mingw64
Netease Cloud Wechat applet
PMP experience learning and sharing process
在EXCEL写VBA连接ORACLE并查询数据库中的内容
H5网页播放器EasyPlayer.js如何实现直播视频实时录像?
Cesium load vector data
JMeter JDBC batch references data as input parameters (the simplest method for the whole website)
Mysql数据库-锁-学习笔记
Jenkins+ant+jmeter use
Mysql:select ... for update
Postman data driven
Locust performance test 2 (interface request)
沙龙预告|GameFi 领域的瓶颈和解决方案
网易云微信小程序
(3/8)枚举的不当用法 之 方法参数(二)
Network request process
Jenkins modifies the system time