Allow frontend url
This commit is contained in:
@@ -26,7 +26,7 @@ namespace Todo.Api
|
||||
services.AddCors(options =>
|
||||
{
|
||||
options.AddDefaultPolicy(builder =>
|
||||
builder.WithOrigins("http://localhost:3000")
|
||||
builder.WithOrigins("http://localhost:3000", "https://todo.front.kjuulh.io")
|
||||
.AllowCredentials()
|
||||
.AllowAnyHeader()
|
||||
.AllowAnyMethod());
|
||||
@@ -65,4 +65,4 @@ namespace Todo.Api
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user