NGINX Header Blocking Responsive Viewer Frames in WP 6.3
-
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.
- The topic ‘NGINX Header Blocking Responsive Viewer Frames in WP 6.3’ is closed to new replies.