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()
|
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();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user