修改跨域地址
This commit is contained in:
parent
c1e86a48a1
commit
4d41586fde
|
@ -81,7 +81,7 @@ builder.Services.AddCors(options =>
|
||||||
{
|
{
|
||||||
//允许全部
|
//允许全部
|
||||||
policy.WithOrigins("http://localhost:3001", "http://192.168.0.13:3001", "https://192.168.0.13:3001",
|
policy.WithOrigins("http://localhost:3001", "http://192.168.0.13:3001", "https://192.168.0.13:3001",
|
||||||
"https://192.168.0.13:3000").AllowAnyHeader().AllowAnyMethod().AllowCredentials();
|
"https://192.168.0.13:3000","http://loongpanel.xn--7p0a.site").AllowAnyHeader().AllowAnyMethod().AllowCredentials();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue