You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use rack-reverse-proxy in order to bypass a CORS error while accessing youtube via ajax from my website. I have the following JS code client-side:
Try disabling the preserve_host option. Whilst solving another issue I've discovered that setting it to false is what trully keep the doamin in the request to the target machine.
Hi,
I would like to use rack-reverse-proxy in order to bypass a CORS error while accessing youtube via ajax from my website. I have the following JS code client-side:
And the following Ruby on Rails code server-side:
I'm still getting a CORS error on the client-side. I've been playing with different reverse_proxy_options but couldn't make it work so far.
Is it possible to achieve this with rack-reverse-proxy? Which options should I use?
Thanks for your help
The text was updated successfully, but these errors were encountered: