fix(router): enable cors on session endpoints for sso proxies

This commit is contained in:
Trong Huu Nguyen
2023-11-15 08:42:42 +01:00
parent 27ade353d9
commit 191f3c3ca8
+1 -1
View File
@@ -89,7 +89,7 @@ func New(src Source, cfg *config.Config) chi.Router {
})
r.Route(paths.Session, func(r chi.Router) {
if cfg.SSO.IsServer() {
if cfg.SSO.Enabled {
r.Use(cors(http.MethodGet, http.MethodPost))
r.Options("/", noopHandler)