Show TOC

Configure CORS (Cross-Origin Resource Sharing)Locate this document in the navigation structure

Cross-origin resource sharing (CORS) is a mechanism that allows restricted resources (or services) on a web page to be requested from another domain outside the domain from which the resource originated. CORS defines the way in which a browser and server can interact to safely determine whether or not to allow the cross-origin request.

In this documentation, the focus is on the server side, as most modern browsers support CORS already.

Note Whenever possible, CORS is recommended over JSONP.