Add CORS header for Gitea OAuth
Some checks failed
Check / Lint Ansible Files (push) Has been cancelled

This commit is contained in:
Paul Brinkmeier 2026-05-17 20:27:46 +02:00
parent b135f9e430
commit 812298e5ad

View File

@ -46,6 +46,20 @@ pad.pbrinkmeier.de {
} }
git.pbrinkmeier.de { git.pbrinkmeier.de {
# Allow apps to requests tokens 'n stuff
@oauth path /login/oauth/*
header @oauth {
Access-Control-Allow-Origin "*"
Access-Control-Allow-Methods "GET, POST, OPTIONS"
Access-Control-Allow-Headers "Content-Type, Authorization"
}
@oauth_preflight {
path /login/oauth/*
method OPTIONS
}
respond @oauth_preflight 204
reverse_proxy gitea:3000 reverse_proxy gitea:3000
} }