Access-Control-Allow-Origin error on production server

I am trying to send and receive data through Api form wordpress to Erpnext.
My production server Ip address like 35.208.xx.xxx:8000,
when I send the request through java script ajax in url 35.208.xx.xxx:8000 it shown the error.“Cross-Origin Read Blocking”
But when I configure the nginx server and assign it to the port 8001 or any other port then request failed .
I also run and setup the nginx command to configure and add the ‘Access-Control-Allow-Origin’ to the file nginx.conf

Please help.

I am stuck here, Please guide me.

Problem solved.
I was checked the production server /etc/nginx/conf.d/ into this path, then I saw that no file get created. Then I create a file your folder name.conf then execute sudo service nginx restart. And problem get solved.