<p>The directions functionality on the main map is broken.</p>
<p>Inputting a starting (Esbjerg, Denmark) and destination (Copenhagen, Denmark) point will load <a href="http://www.openstreetmap.org/directions?engine=osrm_car&route=55.466%2C8.452%3B55.687%2C12.570">http://www.openstreetmap.org/directions?engine=osrm_car&route=55.466%2C8.452%3B55.687%2C12.570</a> which result in a routing error: "Couldn't find a route between those two places." message, and in the browser console I see a error;</p>
<p>Firefox 47.0 (Ubuntu 15.10):</p>
<blockquote>
<p>17:34:47.325 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at <a href="http://router.project-osrm.org/route/v1/driving/8.452,55.466;12.57,55.687?overview=false&geometries=polyline&steps=true">http://router.project-osrm.org/route/v1/driving/8.452,55.466;12.57,55.687?overview=false&geometries=polyline&steps=true</a>. (Reason: CORS header 'Access-Control-Allow-Origin' missing).1 (unknown)</p>
</blockquote>
<p>Chromium 51.0.2704.79 (Ubuntu 15.10):</p>
<blockquote>
<p><a href="http://router.project-osrm.org/route/v1/driving/8.452,55.466;12.57,55.687?overview=false&geometries=polyline&steps=true">http://router.project-osrm.org/route/v1/driving/8.452,55.466;12.57,55.687?overview=false&geometries=polyline&steps=true</a> Failed to load resource: the server responded with a status of 504 (GATEWAY_TIMEOUT)<br>
XMLHttpRequest cannot load <a href="http://router.project-osrm.org/route/v1/driving/8.452,55.466;12.57,55.687?overview=false&geometries=polyline&steps=true">http://router.project-osrm.org/route/v1/driving/8.452,55.466;12.57,55.687?overview=false&geometries=polyline&steps=true</a>. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<a href="http://www.openstreetmap.org">http://www.openstreetmap.org</a>' is therefore not allowed access. The response had HTTP status code 504.</p>
</blockquote>
<p>Internet Explorer 11.0.9600.18376 (Windows Server 2008 R2 Standard)</p>
<blockquote>
<p>SEC7120: Origin <a href="http://www.openstreetmap.org">http://www.openstreetmap.org</a> not found in Access-Control-Allow-Origin header.<br>
File: directions<br>
SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied.<br>
File: directions</p>
</blockquote>
<p>A manual request however shows, as Chromium is aware, that the router.project-osrm.org API returns status code 504:</p>
<blockquote>
<p>$ wget -S -O- "<a href="http://router.project-osrm.org/route/v1/driving/8.452,55.466;12.57,55.687?overview=false&geometries=polyline&steps=true">http://router.project-osrm.org/route/v1/driving/8.452,55.466;12.57,55.687?overview=false&geometries=polyline&steps=true</a>"<br>
--2016-08-08 17:52:51-- <a href="http://router.project-osrm.org/route/v1/driving/8.452,55.466;12.57,55.687?overview=false&geometries=polyline&steps=true">http://router.project-osrm.org/route/v1/driving/8.452,55.466;12.57,55.687?overview=false&geometries=polyline&steps=true</a><br>
Resolving router.project-osrm.org (router.project-osrm.org)... 52.21.213.38<br>
Connecting to router.project-osrm.org (router.project-osrm.org)|52.21.213.38|:80... connected.<br>
HTTP request sent, awaiting response... <br>
HTTP/1.1 504 GATEWAY_TIMEOUT<br>
Date: Mon, 08 Aug 2016 15:53:06 GMT<br>
Server: nginx/1.4.6 (Ubuntu)<br>
Content-Length: 0<br>
Connection: keep-alive<br>
Retrying.<br>
....</p>
</blockquote>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/1263">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABWnLbDmZUDbKqRRo74D_6g0GxFWtcT8ks5qd1PugaJpZM4JfM_O">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABWnLTRoz6yxSy3wVhaBzPOwlWvTJktGks5qd1PugaJpZM4JfM_O.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/openstreetmap/openstreetmap-website/issues/1263"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/openstreetmap-website","title":"openstreetmap/openstreetmap-website","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/modules/aws/aws-bg.jpg","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/openstreetmap-website"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Directions error: router.project-osrm.org returns 504 (#1263)"}],"action":{"name":"View Issue","url":"https://github.com/openstreetmap/openstreetmap-website/issues/1263"}}}</script>