añadido cors para ipv6
This commit is contained in:
@@ -35,6 +35,15 @@ builder.Services.AddCors(options =>
|
|||||||
.AllowAnyMethod()
|
.AllowAnyMethod()
|
||||||
.AllowCredentials();
|
.AllowCredentials();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
options.AddPolicy("AllowSvelteAppv6",
|
||||||
|
builder =>
|
||||||
|
{
|
||||||
|
builder.WithOrigins("http://[::1]:5173")
|
||||||
|
.AllowAnyHeader()
|
||||||
|
.AllowAnyMethod()
|
||||||
|
.AllowCredentials();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
var app = builder.Build();
|
var app = builder.Build();
|
||||||
|
|||||||
Reference in New Issue
Block a user