Additional Characters
-
Hello. Hope you are well. I have been using your plugin for some time now. Thanks.
In this latest updated I noticed that the plugin added addtional characters to some of the policies, specifically ‘self’, ‘none’ ‘unsafe-inline’ and ‘unsafe-eval’. See below.
PLUGIN
Contributors: unicorn03, unicorn07, erku, alexclassroom,
Donate link: https://www.buymeacoffee.com/tentacleplugins
Tags: headers security, hsts, headers, clickjacking, csp
Requires at least: 4.7
Tested up to: 6.8.1
Stable tag: 5.1.1MY CSP
report-to endpoint;
upgrade-insecure-requests;
frame-ancestors ‘self’;
object-src ‘none’;
worker-src ‘self’ blob:;
child-src ‘self’ blob:;
font-src ‘self’ data: https://*.gstatic.com;
img-src ‘self’ data: https://*.gravatar.com https://*.w.org https://*.elegantthemes.com;
default-src ‘self’;
media-src ‘self’;
form-action ‘self’;
style-src ‘self’ ‘unsafe-inline’ https://*.googleapis.com;
frame-src ‘self’ https://*.google.com;
connect-src ‘self’ https://*.elegantthemes.com https://*.digitaloceanspaces.com https://cloudflareinsights.com;
script-src ‘self’ ‘unsafe-inline’ ‘unsafe-eval’ https://*.google.com https://*.gstatic.com https://*.cloudflareinsights.com;My .htaccess file
BEGIN Headers Security Advanced & HSTS WP 5.1.1
Header set Access-Control-Allow-Methods “GET,POST”
Header set Access-Control-Allow-Headers “Content-Type, Authorization”
Header set Content-Security-Policy “report-to endpoint; upgrade-insecure-requests; object-src \’none\’; worker-src \’self\’ blob:; child-src \’self\’ blob:; font-src \’self\’ data: https://.gstatic.com; img-src \’self\’ data: https://.gravatar.com https://.w.org https://.elegantthemes.com; default-src \’self\’; media-src \’self\’; form-action \’self\’; style-src \’self\’ \’unsafe-inline\’ https://.googleapis.com; frame-src \’self\’ https://.google.com; connect-src \’self\’ https://.elegantthemes.com https://.digitaloceanspaces.com https://cloudflareinsights.com; script-src \’self\’ \’unsafe-inline\’ \’unsafe-eval\’ https://.google.com https://.gstatic.com https://*.cloudflareinsights.com;”
Header set Cross-Origin-Embedder-Policy “unsafe-none; report-to=\’default\'”On a test site, I removed the plugin (via ssh), rebuilt the .htaccess file to the wordpress defaults. I logged in to the site, downloaded a fresh copy of your plugin and the problem returned once I activated the plugin. The only way to solve it was to manually edit the .htaccess file and make the appropiate “delete” of the addtional character.
The page I need help with: [log in to see the link]
The topic ‘Additional Characters’ is closed to new replies.