3
They’re using this one GEM to enable the CORS of my application.
The code I have in my config/application.rb
is as follows:
config.middleware.insert_before 0, 'Rack::Cors' do
allow do
origins 'http://localhost:8080'
resource '*',
headers: :any,
methods: [:get, :post, :delete, :put, :options],
max_age: 0
end
end
The problem is that if I change something in this configuration and restart the server the configuration does not apply.
Ex: If I remove the :get and restarting the server was not to be released the Cors to the get but it continues to function as if it were there. What could be?
You are following this example? see that it is possible to enable debug and see on the logger how CORS is being treated
– Peoplee