当前位置:网站首页>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
边栏推荐
- Integer or int? How to select data types for entity classes in ORM
- 沙龙预告|GameFi 领域的瓶颈和解决方案
- Network request process
- (3/8) method parameters of improper use of enumeration (2)
- Redis common commands
- Difference between interface iterator and iteratable
- Mysql database lock learning notes
- Skill review of test engineer before interview
- Netease Cloud Wechat applet
- Over 100000 words_ Ultra detailed SSM integration practice_ Manually implement permission management
猜你喜欢
随机推荐
How to pass the PMP Exam in a short time?
信息安全实验二 :使用X-SCANNER扫描工具
Information Security Experiment 4: implementation of IP packet monitoring program
sqlplus乱码问题,求解答
Schema-validation: wrong column type encountered in column XXX in table XXX
Summary of PMP learning materials
Entity of cesium data visualization (Part 1)
Implementation of corner badge of Youmeng message push
Cesium does not support 4490 problem solution and cesium modified source code packaging scheme
Variable parameter of variable length function
Leetcode question brushing record (array) combination sum, combination sum II
超十万字_超详细SSM整合实践_手动实现权限管理
PMP Exam Preparation experience, seek common ground while reserving differences, and successfully pass the exam
PMP certificate preparation experience sharing
VSCode+mingw64
二叉树高频题型
What are the conditions for applying for NPDP?
Information Security Experiment 3: the use of PGP email encryption software
Using JWT to realize login function
When inputting an expression in the input box, an error is reported: incorrect string value:'\xf0\x9f... ' for column 'XXX' at row 1