WIP
This commit is contained in:
@@ -21,24 +21,24 @@ if (!builder.Environment.IsDevelopment())
|
|||||||
|
|
||||||
builder.Services.AddCors(options =>
|
builder.Services.AddCors(options =>
|
||||||
{
|
{
|
||||||
options.AddPolicy("AllowAll", builder =>
|
options.AddPolicy("AllowAll", policy =>
|
||||||
{
|
{
|
||||||
builder.AllowAnyOrigin()
|
policy.AllowAnyOrigin()
|
||||||
.AllowAnyMethod()
|
.AllowAnyMethod()
|
||||||
.AllowAnyHeader();
|
.AllowAnyHeader();
|
||||||
});
|
});
|
||||||
|
|
||||||
options.AddPolicy("AllowHutopyUi", builder =>
|
options.AddPolicy("AllowHutopyUi", policy =>
|
||||||
{
|
{
|
||||||
builder.WithOrigins("https://zealous-bay-08204590f.5.azurestaticapps.net")
|
policy.WithOrigins("https://zealous-bay-08204590f.5.azurestaticapps.net")
|
||||||
.AllowAnyMethod()
|
.AllowAnyMethod()
|
||||||
.AllowAnyHeader()
|
.AllowAnyHeader()
|
||||||
.AllowCredentials();
|
.AllowCredentials();
|
||||||
});
|
});
|
||||||
|
|
||||||
options.AddPolicy("AllowHutopyUiPreview", builder =>
|
options.AddPolicy("AllowHutopyUiPreview", policy =>
|
||||||
{
|
{
|
||||||
builder.WithOrigins("https://zealous-bay-08204590f-preview.eastus2.5.azurestaticapps.net")
|
policy.WithOrigins("https://zealous-bay-08204590f-preview.eastus2.5.azurestaticapps.net")
|
||||||
.AllowAnyMethod()
|
.AllowAnyMethod()
|
||||||
.AllowAnyHeader()
|
.AllowAnyHeader()
|
||||||
.AllowCredentials();
|
.AllowCredentials();
|
||||||
|
|||||||
Reference in New Issue
Block a user