...
This commit is contained in:
@@ -91,7 +91,9 @@ builder.Services.AddCors(options =>
|
|||||||
options.AddPolicy(origins,
|
options.AddPolicy(origins,
|
||||||
policy =>
|
policy =>
|
||||||
{
|
{
|
||||||
policy.WithOrigins("https://localhost:7224", "http://localhost:5107", "http://195.88.208.142", "http://moadiran.ir")
|
policy.WithOrigins("https://localhost:7224", "http://localhost:5107"
|
||||||
|
, "http://195.88.208.142", "http://moadiran.ir"
|
||||||
|
, "https://195.88.208.142", "https://moadiran.ir")
|
||||||
.AllowAnyHeader()
|
.AllowAnyHeader()
|
||||||
.WithHeaders(HeaderNames.ContentType)
|
.WithHeaders(HeaderNames.ContentType)
|
||||||
.AllowAnyMethod();
|
.AllowAnyMethod();
|
||||||
|
Reference in New Issue
Block a user