php - Reset Content-Security-Policy for Wordpress

one text

Solution:

"Since when issue CSP headers through the .htaccess file, its rules are inherited for all subdirectories, it need to make a own .htaccess for the folder /wp-admin/ and cancel the publication of CSP headers in it.

An example of the file .htaccess, which must be put in the /wp-admin/ folder for Wordpress:"

Options -Indexes FollowSymlinks
<IfModule mod_headers.c>
   Header unset Content-Security-Policy
</IfModule>

https://csplite.com/csp31/#CMS_admin

Source