another try to fast fix cors.

This commit is contained in:
ngfrolov 2022-04-25 09:37:10 +05:00
parent e6910d0d5f
commit 6aae972aba

View File

@ -42,6 +42,7 @@ namespace AsbCloudWebApi
{
policy.AllowAnyHeader()
.AllowAnyMethod()
//.SetIsOriginAllowed(h => true)
.WithOrigins(
"http://0.0.0.0",
"http://*",
@ -62,14 +63,17 @@ namespace AsbCloudWebApi
"https://0.0.0.0:3000",
"https://*:3000",
"https://localhost:3000",
"https://0.0.0.0:5001",
"https://*:5001",
"https://localhost:5001",
"https://0.0.0.0:443",
"https://*:443",
"https://localhost:443"
"https://localhost:443",
"http://cloud.autodrilling.ru",
"http://cloud.digitaldrilling.ru"
)
.AllowCredentials();
});