[openstreetmap-website] Allow cross-origin request to API (#138)

Tom Hughes 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:
https://github.com/openstreetmap/openstreetmap-website/pull/138/files#r1901139
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20121022/bbad7912/attachment.html>


More information about the rails-dev mailing list