leaflet-routing
                                
                                
                                
                                    leaflet-routing copied to clipboard
                            
                            
                            
                        OSM demo not working (301 for routing.php)
The OSM demo linked in the project page is not working because the XHR requests for snapping data and routing API fail with a 301 Moved Permanently response for the routing.php, which acts as a proxy for non-CORS enabled services:
http://www2.turistforeningen.no/routing.php?url=http://www.openstreetmap.org/api/0.6/map&bbox=8.615341186523438,61.47371010902601,8.828372955322266,61.52547772030421&1=2
If this is on purpose, there might be an alternative using Overpass API and perhaps GeoJSON Path Finder?
That server was taken offline not long ago.