<p>In config/application.rb:</p>
<pre style='color:#555'>> @@ -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
</pre>
<p>Is there any reason why we can't put this in an initializer rather than <code>application.rb</code> only I try and avoid altering that if at all possible as it just makes work when doing rails version upgrades.</p>
<p>Also, what was the logic behind the <code>:headers => :any</code> clause? I don't think we have any requests that need custom headers do we?</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">
—<br>
Reply to this email directly or <a href='https://github.com/openstreetmap/openstreetmap-website/pull/138/files#r1901139'>view it on GitHub</a>.
</p>
<img src='https://github.com/notifications/beacon/uTRSc6ihLa7Shf84BpiOpmLWAu4oQih75mggZl1E8_nNfp_iEXETdQVsjYwMcApp.gif' height='1' width='1'>