Pass Host header to YunoHost API

This is useful to validate Origin/Referer headers in order to prevent
CSRF.
This commit is contained in:
Gabriel Corona 2018-10-13 13:39:50 +02:00 committed by Alexandre Aubin
parent 1c5b93f532
commit 8691017b46

View file

@ -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;