I have a redash instance hosted on AWS. I am creating a new seperate client app which can display data by fetching queries using
however when I try to connect with the api using web Fetch call, I face CORS error with the message “Access to fetch at ‘https://my-server.com/api/queries?api_key=xxxx’ from origin ‘https://dev-enviroment:3000’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource”.
To solve this, i came across an env variable “REDASH_CORS_ACCESS_CONTROL_ALLOW_ORIGIN” whose value I tried setting to :
But no success yet.
- I also tried setting a manual proxy using
http-proxy-middlewarepackage which solves the error in dev enviorment. but on production this doesnot work
Can you guide me on how I can solve this CORS error
- Redash Version: v8
- Browser/OS: chrome & firefox
- How did you install Redash: docker