CORS policy

This commit is contained in:
2024-04-22 10:15:52 +02:00
parent 1914d6bb83
commit d252d2f6df

View File

@@ -48,6 +48,12 @@ namespace WD7UVN_HFT_2023241.Endpoint
app.UseHttpsRedirection();
app.UseCors(x => x
.AllowCredentials()
.AllowAnyMethod()
.AllowAnyHeader()
.WithOrigins("http://localhost:25415"));
app.UseRouting();
app.UseAuthorization();