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() policy.AllowAnyHeader()
.AllowAnyMethod() .AllowAnyMethod()
//.SetIsOriginAllowed(h => true)
.WithOrigins( .WithOrigins(
"http://0.0.0.0", "http://0.0.0.0",
"http://*", "http://*",
@ -69,7 +70,10 @@ namespace AsbCloudWebApi
"https://0.0.0.0:443", "https://0.0.0.0:443",
"https://*:443", "https://*:443",
"https://localhost:443" "https://localhost:443",
"http://cloud.autodrilling.ru",
"http://cloud.digitaldrilling.ru"
) )
.AllowCredentials(); .AllowCredentials();
}); });