0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-01-09 08:00:44 -05:00
forgejo/modules/web
Giteabot 3175a984f2
Make CORS work for oauth2 handlers (#28184) (#28185)
Backport #28184

Fix #25473

Although there was `m.Post("/login/oauth/access_token", CorsHandler()...`,
it never really worked, because it still lacks the "OPTIONS" handler.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
(cherry picked from commit 23838c2c2e)
2023-11-25 07:27:39 +01:00
..
middleware
routing
types
handler.go [GITEA] Use maintained gziphandler 2023-11-13 14:06:31 +01:00
route.go Make CORS work for oauth2 handlers (#28184) (#28185) 2023-11-25 07:27:39 +01:00
route_test.go
routemock.go
routemock_test.go