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