mirror of
https://github.com/QuotifyTeam/QuotifyBE.git
synced 2025-12-16 23:40:06 +01:00
fix: cors allows any method for known origins
This commit is contained in:
@@ -33,7 +33,9 @@ builder.Services.AddCors(options =>
|
|||||||
{
|
{
|
||||||
policy
|
policy
|
||||||
.WithOrigins(CorsOrigins.ToArray())
|
.WithOrigins(CorsOrigins.ToArray())
|
||||||
.AllowAnyHeader(); // this might not be the greatest idea
|
// this might not be the greatest idea:
|
||||||
|
.AllowAnyHeader()
|
||||||
|
.AllowAnyMethod();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user