graphite: add grafana header to CORS allowed list

Honestly we're not 100% sure where this CORS setup came from, it's
always been like this.  grafana recently added a header it's sending
to graphite [1] (found by frickler) which we need to white-list so it
works with modern grafana.

[1] 1a281ac49d (diff-70030faa245250908d55db47258ce505d474db1559995683f8df1a951504236fR24)

Change-Id: I21570bd1a350e430bc04a14ad9d2cb1bf652d021
This commit is contained in:
Ian Wienand 2023-12-21 09:22:08 +11:00 committed by Jeremy Stanley
parent f4a20b0502
commit 86dfc9ee25

View File

@ -54,7 +54,7 @@ server {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type';
add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type, X-Grafana-Device-Id';
add_header 'Access-Control-Allow-Credentials' 'true';
}