当前位置:网站首页>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
边栏推荐
- Dynamics 365Online ApplicationUser创建方式变更
- ComputeShader
- How to pass the PMP Exam in a short time?
- Data association between two interfaces of postman
- Unity shader (to achieve a simple material effect with adjustable color attributes only)
- Storage of data in memory
- Add new item after the outbound delivery order of SAP mm sto document is created?
- Yapi test plug-in -- cross request
- CMD startup software passes in parameters with spaces
- Nested (multi-level) childrn routes, query parameters, named routes, replace attribute, props configuration of routes, params parameters of routes
猜你喜欢
Error: selenium common. exceptions. WebDriverException: Messag‘geckodriver‘ execute
Information Security Experiment 2: using x-scanner scanning tool
Mysql数据库-锁-学习笔记
Locust performance test 2 (interface request)
PMP Exam details after the release of the new exam outline
What is MD5
Postman interface test (II. Set global variables \ sets)
Several stages of PMP preparation study
数据建模中利用3σ剔除异常值进行数据清洗
沙龙预告|GameFi 领域的瓶颈和解决方案
随机推荐
網易雲微信小程序
Huawei hcip datacom core_ 03day
软件建模与分析
Using JWT to realize login function
What is the value of getting a PMP certificate?
Pycharm create a new file and add author information
(3/8)枚举的不当用法 之 方法参数(二)
DRF defines views and routes
C language pointer (Part 2)
Jmeters use
Pycharm importing third-party libraries
Mysql database index study notes
Postman interface debugging method
Data association between two interfaces of postman
stm32和电机开发(从单机版到网络化)
liunx命令
Register address name mapping
Jenkins modifies the system time
4、 Fundamentals of machine learning
When inputting an expression in the input box, an error is reported: incorrect string value:'\xf0\x9f... ' for column 'XXX' at row 1