forgejo/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 Add LRU mem cache implementation (#16226) 2021-07-10 23:54:15 +02:00
charset
context Redirect on bad CSRF instead of presenting bad page (#14937) 2021-07-08 15:57:24 +02:00
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 Rework repository archive (#14723) 2021-06-23 17:12:38 -04:00
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 Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
nosql
notification Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
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 Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
repofiles Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
repository Fix archive error when rename repo or user (#16399) 2021-07-13 14:16:31 +02:00
secret Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
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 Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
templates
test
timeutil
translation
typesniffer Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
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 Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
web Restore CORS on git smart http protocol (#16496) 2021-07-21 11:32:35 +08:00