<p>Yes, this is different than what flash and silverlight do for cross-origin requests. Basically, what happens is the browser preflights any cross-origin request by making an OPTIONS request to the same path, and if it gets an affirmative response, the request is permitted.</p>

<p>Can we update the apache config so that OPTIONS requests always go to the rails port? Then we wouldn't need any cgimap changes.</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#issuecomment-9648247'>view it on GitHub</a>.
            </p>
            <img src='https://github.com/notifications/beacon/uTRSc6ihLa7Shf84BpiOpmLWAu4oQih75mggZl1E8_nNfp_iEXETdQVsjYwMcApp.gif' height='1' width='1'>