十八、跨域处理
如果系统之间需要交互通常需要进行特殊的配置才能够通讯。
什么是跨域
什么是CORS
CORS 使用
{
"AppConfigOptions": {
"EnableGlobalAuthorizationFilter": false,
"EnableGlobalUnifiedResultFilter": false,
"EnableCorsSupport": true, // 启用跨域支持,默认true
"EnableGlobalPerformanceAnalysis": true,
"EnableRedisCache": false
},
}配置CORS跨域信息
最后更新于