mirror of
https://github.com/nais/wonderwall.git
synced 2026-05-14 12:26:34 +00:00
fix(router): enable cors on session endpoints for sso proxies
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user