loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix 405 method not allowed CORS / OIDC (#28583)

Follow #28184
Follow #28515

Fix problem with 405 method not allowed for CORS wrt OIDC

authored by

morphelinho and committed by
GitHub
19869d1c 21229ed2

+2
+2
routers/web/web.go
··· 532 532 // TODO manage redirection 533 533 m.Post("/authorize", web.Bind(forms.AuthorizationForm{}), auth.AuthorizeOAuth) 534 534 }, ignSignInAndCsrf, reqSignIn) 535 + m.Options("/login/oauth/userinfo", CorsHandler(), misc.DummyBadRequest) 535 536 m.Get("/login/oauth/userinfo", ignSignInAndCsrf, auth.InfoOAuth) 536 537 m.Options("/login/oauth/access_token", CorsHandler(), misc.DummyBadRequest) 537 538 m.Post("/login/oauth/access_token", CorsHandler(), web.Bind(forms.AccessTokenForm{}), ignSignInAndCsrf, auth.AccessTokenOAuth) 539 + m.Options("/login/oauth/keys", CorsHandler(), misc.DummyBadRequest) 538 540 m.Get("/login/oauth/keys", ignSignInAndCsrf, auth.OIDCKeys) 539 541 m.Options("/login/oauth/introspect", CorsHandler(), misc.DummyBadRequest) 540 542 m.Post("/login/oauth/introspect", CorsHandler(), web.Bind(forms.IntrospectTokenForm{}), ignSignInAndCsrf, auth.IntrospectOAuth)