当前位置:网站首页>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
边栏推荐
- PMP certificate preparation experience sharing
- (3/8) method parameters of improper use of enumeration (2)
- Schema-validation: wrong column type encountered in column XXX in table XXX
- Leetcode daily questions (2316. count unreachable pairs of nodes in an undirected graph)
- Locust performance test 5 (analysis)
- Postman data driven
- Variable parameter of variable length function
- SiteMesh getting started example
- Mysql:select ... for update
- Pytest+request+allure+excel interface automatic construction from 0 to 1 [familiar with framework structure]
猜你喜欢
答案在哪里?action config/Interceptor/class/servlet
Pycharm create a new file and add author information
Locust performance test 2 (interface request)
JMeter JDBC batch references data as input parameters (the simplest method for the whole website)
Information Security Experiment 1: implementation of DES encryption algorithm
stm32和电机开发(从单机版到网络化)
網易雲微信小程序
Cesium does not support 4490 problem solution and cesium modified source code packaging scheme
Information Security Experiment 3: the use of PGP email encryption software
JVM 内存结构 详细学习笔记(一)
随机推荐
JMeter JDBC batch references data as input parameters (the simplest method for the whole website)
Pycharm create a new file and add author information
How can I apply for a PMP certificate?
5A summary: seven stages of PMP learning
What is the rating of Huishang futures company? Is it safe to open an account? I want to open an account, OK?
Unity shader (to achieve a simple material effect with adjustable color attributes only)
Idea development environment installation
Connecting mobile phone with ADB
shake数据库中怎么使用Mongo-shake实现MongoDB的双向同步啊?
VSCode+mingw64+cmake
华为HCIP-DATACOM-Core_03day
超十万字_超详细SSM整合实践_手动实现权限管理
Information Security Experiment 4: implementation of IP packet monitoring program
What is MD5
Unity uses mesh to realize real-time point cloud (I)
Do you have any certificates with high gold content?
liunx命令
二叉树高频题型
C language pointer (Part 2)
Install pyqt5 and Matplotlib module