Allow IFrame in nginx

So the other day while working on this post I faced the issue that the map wasn’t showing as an IFrame, it was showing nothing but and empty white rectangle. This because by default nginx doesn’t allow X-Frames. In order to do this it is needed to edit file /etc/nginx/snippets/ssl-params.conf and change DENY to SAMEORIGIN as below:

user@computer:$ grep "SAMEORI" /etc/nginx/snippets/ssl-params.conf
add_header X-Frame-Options SAMEORIGIN;

References:
1) Nginx web
2) geekflare.com

Leave a Reply

Your email address will not be published. Required fields are marked *

AlphaOmega Captcha Geographica  –  What City Do You See?
     
 

This site uses Akismet to reduce spam. Learn how your comment data is processed.