[openstreetmap-website] Allow cross-origin request to API (#138)
notifications at github.com
Mon Oct 22 08:39:21 GMT 2012
> @@ -72,6 +72,14 @@ class Application < Rails::Application
> # Version of your assets, change this if you want to expire all your assets
> config.assets.version = '1.0'
> + # Allow cross-origin API requests
Is there any reason why we can't put this in an initializer rather than `application.rb` only I try and avoid altering that if at all possible as it just makes work when doing rails version upgrades.
Also, what was the logic behind the `:headers => :any` clause? I don't think we have any requests that need custom headers do we?
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rails-dev