diff --git a/pkg/router/router.go b/pkg/router/router.go index ab11e95..46b6abd 100644 --- a/pkg/router/router.go +++ b/pkg/router/router.go @@ -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)