Add CORS headers to Ray App #157
Replies: 8 comments
-
The workaround I've come up with in the mean time is to run an http proxy that adds the required CORS headers. |
Beta Was this translation helpful? Give feedback.
-
What version of the app are you on? I added the required headers using the |
Beta Was this translation helpful? Give feedback.
-
Ray version: 1.3.0 When I dump the headers from a HTTP/1.1 200 OK
X-Powered-By: Express
Content-Type: text/html; charset=utf-8
Content-Length: 2
ETag: W/"2-eoX0dku9ba8cNUXvu/DyeabcC+s"
Date: Thu, 14 Jan 2021 13:31:11 GMT
Connection: keep-alive
ok and the headers from an HTTP/1.1 200 OK
X-Powered-By: Express
Allow: POST
Content-Type: text/html; charset=utf-8
Content-Length: 4
ETag: W/"4-Yf+Bwwqjx254r+pisuO9HfpJ6FQ"
Date: Thu, 14 Jan 2021 13:34:09 GMT
Connection: keep-alive
POST |
Beta Was this translation helpful? Give feedback.
-
That's weird 😅 |
Beta Was this translation helpful? Give feedback.
-
Strange. Is it possible you're running a development version? (Or on a different OS?) |
Beta Was this translation helpful? Give feedback.
-
[email protected] I'm on Mac running a production version of Ray 1.3.0. I'm not sure what's going wrong 😬 I'm trying to find a solution. |
Beta Was this translation helpful? Give feedback.
-
Oh boy. It'll be included in the next version 🙄 |
Beta Was this translation helpful? Give feedback.
-
Fantastic. Thanks for looking into it! |
Beta Was this translation helpful? Give feedback.
-
I'm working on something that sends data to Ray from the browser, however due to a missing
Access-Control-Allow-Origin
header, I cannot send anything due to the CORS restrictions.Can you add an option in preferences to modify this, or add
Access-Control-Allow-Origin: *
to the headers in the app's Express server?Error message:
Beta Was this translation helpful? Give feedback.
All reactions