运行跨越

This commit is contained in:
马梓彭 2026-03-18 19:21:34 +08:00
parent 11b90517ee
commit 318504339c
2 changed files with 12 additions and 3 deletions

View File

@ -1315,7 +1315,7 @@
"Name": "积分管理", "Name": "积分管理",
"Type": 0, "Type": 0,
"Code": "integral", "Code": "integral",
"ParentId": 1012, "ParentId": null,
"RouteName": "integral", "RouteName": "integral",
"Path": "/integral", "Path": "/integral",
"Component": "ParentView", "Component": "ParentView",
@ -1325,7 +1325,7 @@
"IsKeepAlive": "1", "IsKeepAlive": "1",
"IsFixed": "0", "IsFixed": "0",
"Status": 0, "Status": 0,
"Sort": 1, "Sort": 161,
"Remark": "", "Remark": "",
"DeleteMark": false, "DeleteMark": false,
"CreatedUserId": 1000, "CreatedUserId": 1000,

View File

@ -79,7 +79,16 @@ public class Startup : AppStartup
}); });
//允许跨域 //允许跨域
services.AddCorsAccessor(); services.AddCorsAccessor(options =>
{
options.AddPolicy("Furion", builder =>
{
builder.SetIsOriginAllowed(_ => true)
.AllowAnyMethod()
.AllowAnyHeader()
.AllowCredentials();
});
});
//配置缓存 文档:https://easycaching.readthedocs.io/en/latest/ //配置缓存 文档:https://easycaching.readthedocs.io/en/latest/
services.AddEasyCaching(options => services.AddEasyCaching(options =>