mirror of
https://github.com/CoreUnion/CoreShop.git
synced 2026-10-17 05:12:39 +08:00
优化h5跨域请求设置
This commit is contained in:
@@ -33,9 +33,10 @@ namespace CoreCms.Net.Core.Config
|
||||
{
|
||||
c.AddPolicy(AppSettingsConstVars.CorsPolicyName, policy =>
|
||||
{
|
||||
policy.WithOrigins(AppSettingsConstVars.CorsIPs.Split(','))
|
||||
.AllowAnyHeader()//Ensures that the policy allows any header.
|
||||
.AllowAnyMethod();
|
||||
policy.WithOrigins(AppSettingsConstVars.CorsIPs.Split(','));
|
||||
policy.AllowAnyHeader();//Ensures that the policy allows any header.
|
||||
policy.AllowAnyMethod();
|
||||
policy.AllowCredentials();
|
||||
});
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user