Using this GEM to enable CORS 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 anything in this configuration and restart the server the configuration does not apply.
Ex: If I remove : get and restart the server it was not to release cors for get but it keeps running as if it were there. What could it be?