Nginx Security Policy Conflict With WP

[ad_1]

I’m not sure what changed, but recently my WP sites on nginx stopped allowing me to preview tablet & mobile views from the editor. The live previews are displayed from the editor as an iframe which is now being blocked by the following nginx content security policy header:

`add_header Content-Security-Policy “default-src ‘self’ https: data: ‘unsafe-inline’ ‘unsafe-eval’;” always;`

​

[https://snipboard.io/CeID6d.jpg])

I can configure & troubleshoot the basics with nginx, but not quite sure what to modify or replace this with to allow these previews to work again that are being sourced from the locally hosted domain.

Any suggestions are greatly appreciated.

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer