You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zeripath 28f6f7bb03
Restore CORS on git smart http protocol (#16496)
Unfortunately the chi changes have resulted in the CORS headers for the
git smart http protocol going missing.

This is mostly because the OPTIONS method is not being handled by
httpBase anymore.

This PR adds a GetOptions, PostOptions and Options methods to web
handler to allow OPTIONS method requests to still reach the httpBase
function.

Fix #16350
Close #16491

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
3 years ago
..
admin Fix activation of primary email addresses (#16385) 3 years ago
dev Refactor routers directory (#15800) 3 years ago
events Refactor routers directory (#15800) 3 years ago
explore Refactor routers directory (#15800) 3 years ago
org Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
repo Add TestPrepareWikiFileName (#16487) 3 years ago
user Update notification table with only latest data (#16445) 3 years ago
base.go Add sso.Group, context.Auth, context.APIAuth to allow auth special routes (#16086) 3 years ago
goget.go Refactor routers directory (#15800) 3 years ago
home.go Refactor routers directory (#15800) 3 years ago
metrics.go Refactor routers directory (#15800) 3 years ago
swagger_json.go Refactor routers directory (#15800) 3 years ago
web.go Restore CORS on git smart http protocol (#16496) 3 years ago