Clark Boylan 088df00edc Update graphite to send CORS headers even on 400 responses
Newer grafana sends an options request that graphite responds to with a
400 response. This response did not include allowed origin headers
because it is a failure case. Update this header and the allowed methods
header to always be included even on 400 or other error responses.

This should ideally address the CORS errors we see with updated grafana.
An alternative is to update grafana to proxy the requests for us, but
this is less flexible as other tools may not have built in proxies.

The suggestion comes from this stackoverflow question and answer:

  https://stackoverflow.com/questions/20414669/nginx-add-headers-when-returning-400-codes

Change-Id: Icf1179d35e420384da72af839ca329548226ee63
2025-01-28 12:47:22 -08:00
..
2020-07-03 07:17:28 +10:00
2022-06-28 18:41:17 +10:00
2020-07-03 07:17:28 +10:00

Run Graphite