cyu / rack-cors

Rack Middleware for handling Cross-Origin Resource Sharing (CORS), which makes cross-origin AJAX possible.
MIT License
3.26k stars 263 forks source link

How do I use Rails.application.config.hosts << "product.com" in development #222

Closed mices closed 3 years ago

mices commented 3 years ago

My problem arises when my rails app running in development makes a request to a socket.io server on localhost:8000 I get the error "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at" in the console I'm using the rack-cors gem

cyu commented 3 years ago

@mices there really isn't enough information here to troubleshoot this.