X-Frame-Options in nginx to allow all domains

Solved it by changing proxy_hide_header values in /etc/nginx/sites-available/default file like so:

proxy_hide_header X-Frame-Options;

Needed to restart nginx as well as use pm2 to restart my nodejs server (for some reason, it didn’t work till I made a small change to my server and restarted it).

Leave a Comment