5 ms·
> How did you handle getting your browser to talk to a server running on a different port? (Cross-origin requests). https://github.com/cyu/rack-cors https://gi
by patrickread 12y ago
> How did you handle getting your browser to talk to a server running on a different port? (Cross-origin requests).
https://github.com/cyu/rack-cors https://github.com/cyu/rack-cors
I used that gem recently, and it fixed my issue. Just added the dev, prod hostnames explicitly in the origins list in my application.rb.