Fixed CORS issues using Rack::Cors