NGINX Header Blocking Responsive Viewer Frames in WP 6.3

[ad_1]

I’ve included the following Nginx header in my configuration for security and have never had an issue until upgrading from the previous version to 6.3:

add_header Content-Security-Policy "default-src 'self' https: data: 'unsafe-inline' 'unsafe-eval';" always;

This policy is now preventing the page editor’s responsive previewing for tablet & mobile from loading by refusing to frame the page blob. When selecting either view type the result is something like this:

https://snipboard.io/CeID6d.jpg

If anyone who’s working with an nginx configuration can offer a suggestion of an edit or alternative policy it would be greatly appreciated as my experience with nginx is relatively basic.

  • This topic was modified 3 hours, 32 minutes ago by WPnub.

 

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