forked from ddrilling/AsbCloudServer
another try to fast fix cors.
This commit is contained in:
parent
e6910d0d5f
commit
6aae972aba
@ -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();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user