mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-13 09:30:32 +02:00
Update ingress.conf
This commit is contained in:
@@ -24,6 +24,11 @@ server
|
||||
proxy_set_header X-Script-Name %%ingress_entry%%; # IMPORTANT: path has NO trailing slash
|
||||
proxy_cookie_path / %%ingress_entry%%/;
|
||||
|
||||
# Allow iframe
|
||||
proxy_hide_header X-Frame-Options;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
proxy_set_header Accept-Encoding "";
|
||||
|
||||
# Avoid mixed contents
|
||||
if ($http_referer ~* "^(http[s]?)://([^:]+):(\d*)(/.*)$")
|
||||
{
|
||||
@@ -50,11 +55,6 @@ server
|
||||
#sub_filter "/search" "%%ingress_entry%%/search";
|
||||
#sub_filter "/edit/" "%%ingress_entry%%/edit/";
|
||||
|
||||
# Allow iframe
|
||||
proxy_hide_header X-Frame-Options;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
proxy_set_header Accept-Encoding "";
|
||||
|
||||
# Tests
|
||||
#proxy_set_header X-Real-IP $remote_addr;
|
||||
#proxy_set_header X-Forwarded-Host $server_name;
|
||||
|
||||
Reference in New Issue
Block a user