Closed ianwalter closed 8 years ago
Trying to use the InfluxDB UI which is proxied by Caddy. The OPTIONS request looks fine, but on the subsequent GET request I get a CORS error because of the duplicate headers:
access-control-allow-origin:https://influx.mydomain.com access-control-allow-origin:https://influx.mydomain.com
My Caddyfile looks like:
https://influx.mydomain.com { # tls ... # basicauth ... proxy / http://influxdb:8083/ } https://influx.mydomain.com:8086 { # tls ... proxy / http://influxdb:8086/ cors / { origin https://influx.mydomain.com allowed_headers Authorization } }
Any ideas why this is happening?
It seems that InfluxDB may be writing theses headers and so adding cors is not necessary.
I have a nearly identical setup for influx and don't need cors. I think influx just automatically does what you need.
Trying to use the InfluxDB UI which is proxied by Caddy. The OPTIONS request looks fine, but on the subsequent GET request I get a CORS error because of the duplicate headers:
My Caddyfile looks like:
Any ideas why this is happening?