REST Services CORS Sample This sample shows how to call the Bing Maps REST services using a CORS request.

The Bing Maps REST services were initially released many years ago before browsers supported cross domain requests using CORS. To get around this JSONP requests where made which would tell the server to wrap the response with a JavaScript function. JSONP requests would then be loaded like a JavaScript file rather than queries like a API. The Bing Maps REST services now support CORS as well.