Linux Hint published a tutorial about using CORS with Nginx.
How to use CORS with Nginx
CORS, also known as cross origin resource sharing is a technique used in modern web browsers that controls access to resources hosted in a web server. Developers have to modify their web server to allow such requests. This article demonstrates how to get it done on a Nginx web server with ease.
How to use CORS with Nginx