refactor: replace AllowedOrigins with AllowOriginFunc

This commit is contained in:
Derrick Hammer 2024-03-19 15:45:02 -04:00
parent 7ed63d94cc
commit 85738c1065
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 1 deletions

View File

@ -413,7 +413,9 @@ func (a *AccountAPI) Routes() (*httprouter.Router, error) {
}
corsMw := cors.New(cors.Options{
AllowedOrigins: []string{"*." + a.config.Config().Core.Domain},
AllowOriginFunc: func(origin string) bool {
return true
},
AllowedMethods: []string{"*"},
})