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