nginx No 'Access-Control-Allow-Origin' header is present on the requested resource
I was editing wrong part of config.
There were 2 server {} blocks.
One of them was for ssl on, and another was without ssl.
I was editing with ssl part
server { liten 443; ssl on; ....}
But I was calling non ssl part of the site and it was not reacting.
The only question could be - how could I detect it sooner. I spent few hours on this.
So for future visitors who can have such problem - check carefully, make sure you are editing the right block, or the right file of sites-enabled