1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-23 09:04:26 +00:00
gitea/modules
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>
2021-07-21 11:32:35 +08:00
..
analyze
auth
avatar
base
cache
charset
context
convert Add option to provide signature for a token to verify key ownership (#14054) 2021-07-13 15:28:07 +02:00
cron Change @every 24h default schedules to @midnight (#16431) 2021-07-15 11:55:48 -04:00
csv
doctor
emoji
eventsource
generate
git Make cancel from CatFileBatch and CatFileBatchCheck wait for the command to end (#16479) 2021-07-20 20:23:01 +03:00
gitgraph
graceful Support HTTP/2 in Let's Encrypt (#16371) 2021-07-13 18:17:46 +01:00
hcaptcha
highlight
httpcache
httplib Second attempt at preventing zombies (#16326) 2021-07-14 10:43:13 -04:00
indexer Fix data race in bleve indexer (#16474) 2021-07-18 21:59:10 +02:00
lfs Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
log Fix race in log (#16490) 2021-07-20 20:09:29 +01:00
markup modules/markup/markdown: fix dropped test error (#16438) 2021-07-18 14:09:34 +02:00
matchlist
metrics
migrations
nosql
notification
options
password
pprof
private Second attempt at preventing zombies (#16326) 2021-07-14 10:43:13 -04:00
process
public
queue Fix race in log (#16490) 2021-07-20 20:09:29 +01:00
recaptcha
references
repofiles
repository Fix archive error when rename repo or user (#16399) 2021-07-13 14:16:31 +02:00
secret
session
setting add configuration option to restrict users by default (#16256) 2021-07-15 15:19:48 -04:00
ssh Second attempt at preventing zombies (#16326) 2021-07-14 10:43:13 -04:00
storage Retry rename on lock induced failures (#16435) 2021-07-15 11:46:07 -04:00
structs Add option to provide signature for a token to verify key ownership (#14054) 2021-07-13 15:28:07 +02:00
svg
sync
task
templates
test
timeutil
translation
typesniffer
upload
uri
user
util Make cancel from CatFileBatch and CatFileBatchCheck wait for the command to end (#16479) 2021-07-20 20:23:01 +03:00
validation
web Restore CORS on git smart http protocol (#16496) 2021-07-21 11:32:35 +08:00