Cross domain request is a HTTP request from other domain. Browsers do not support the XmlHttpRequest from other domain. Cross origin resource sharing provides a way to allow these type of requests. You need to set the headers to allow the other domain in your file. It supports both request methods such as GET and POST and provides the error handling as well that's why it is more beneficial than the jsonp request which supports only GET request method.
We can allow the other third party server to access the files from your website setup. If you are looking fro this then you need to write the following in your file