Add specific origin for visitnamur and fortsaintheribert subdomain

This commit is contained in:
Thomas Fransolet 2024-12-04 08:55:15 +01:00
parent 05aab1bfa4
commit d968c419b3

View File

@ -177,7 +177,7 @@ namespace ManagerService
.AllowCredentials()
#else
options => options
.SetIsOriginAllowed(origin => string.IsNullOrEmpty(origin) || origin == "https://manager.myinfomate.be")
.SetIsOriginAllowed(origin => string.IsNullOrEmpty(origin) || origin == "https://manager.myinfomate.be" || origin == "https://visitnamur.myinfomate.be" || origin == "https://fortsaintheribert.myinfomate.be")
.AllowAnyMethod()
.AllowAnyHeader()
.AllowCredentials()