need to proxy_hide_header to remove the upstream header, otherwise we send the header twice (different versions) in the response and break things #12

Merged
ben merged 1 commits from nginx-hide-header into main 2022-10-02 22:02:12 +00:00
1 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,10 @@ server {
{# proxy_set_header Referer ""; #} {# proxy_set_header Referer ""; #}
proxy_pass https://{{ hass_grafana_proxy_pass }}; proxy_pass https://{{ hass_grafana_proxy_pass }};
# hide the CSP header from regular grafana so we can replace it.
# if we dont hide it, we send both back in the reponse.
proxy_hide_header Content-Security-Policy;
} }
access_log /var/log/nginx/access_{{ hass_grafana_proxy_url }}.log main; access_log /var/log/nginx/access_{{ hass_grafana_proxy_url }}.log main;