ryantxu / ajax-panel

Ajax Panel Plugin for Grafana
MIT License
153 stars 154 forks source link

CORS support #18

Closed ivanB1975 closed 5 years ago

ivanB1975 commented 5 years ago

Is there a way to add CORS support to the GET requests? Other than using a proxy. I am using a node.js proxy to enrich the GET request with the CORS headers and this works. But I was wondering if there is an official way to do this.

ryantxu commented 5 years ago

The only way around CORS is changing the headers on the server. Your options are most likely:

  1. use grafana proxy
  2. some proxy like https://cors-anywhere.herokuapp.com/