...
This commit is contained in:
@@ -91,7 +91,9 @@ builder.Services.AddCors(options =>
|
||||
options.AddPolicy(origins,
|
||||
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()
|
||||
.WithHeaders(HeaderNames.ContentType)
|
||||
.AllowAnyMethod();
|
||||
|
Reference in New Issue
Block a user