Add CORS header for Gitea OAuth
Some checks failed
Check / Lint Ansible Files (push) Has been cancelled
Some checks failed
Check / Lint Ansible Files (push) Has been cancelled
This commit is contained in:
parent
b135f9e430
commit
812298e5ad
@ -46,6 +46,20 @@ pad.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
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user