r/grafana: Fix Origin not allowed error
Grafana 8.3.5 introduced a new CSRF protection mechanism that requires the value of the Host HTTP request header to be preserved from the original client request. https://github.com/grafana/grafana/issues/45117#issuecomment-1033842787btop
parent
3e8da609e7
commit
be4bbc0092
|
@ -1,3 +1,4 @@
|
||||||
|
grafana_domain: '{{ ansible_fqdn }}'
|
||||||
grafana_ldap_enabled: false
|
grafana_ldap_enabled: false
|
||||||
grafana_http_addr:
|
grafana_http_addr:
|
||||||
grafana_ldap_host: 127.0.0.1
|
grafana_ldap_host: 127.0.0.1
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://[::1]:3000/;
|
proxy_pass http://[::1]:3000/;
|
||||||
|
proxy_set_header Host $http_host;
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,7 @@ http_addr = {{ grafana_http_addr }}
|
||||||
http_port = 3000
|
http_port = 3000
|
||||||
|
|
||||||
# The public facing domain name used to access grafana from a browser
|
# The public facing domain name used to access grafana from a browser
|
||||||
domain = localhost
|
domain = {{ grafana_domain }}
|
||||||
|
|
||||||
# Redirect to correct domain if host header does not match domain
|
# Redirect to correct domain if host header does not match domain
|
||||||
# Prevents DNS rebinding attacks
|
# Prevents DNS rebinding attacks
|
||||||
|
|
Loading…
Reference in New Issue