NGINX Access-Control-Allow-Origin' header is present on the requested resource code example
Example: cors access-control-allow-origin header to nginx
add_header 'Access-Control-Allow-Origin' 'origin'
add_header 'Access-Control-Allow-Origin' 'origin'