mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Pass Host header to YunoHost API
This is useful to validate Origin/Referer headers in order to prevent CSRF.
This commit is contained in:
parent
1c5b93f532
commit
8691017b46
1 changed files with 1 additions and 0 deletions
|
@ -4,6 +4,7 @@ location /yunohost/api/ {
|
|||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $http_host;
|
||||
|
||||
# Custom 502 error page
|
||||
error_page 502 /yunohost/api/error/502;
|
||||
|
|
Loading…
Add table
Reference in a new issue