This section explains how to exclude wp-admin from the CSP settings in WordPress.

The CSP content security policy setting causes various problems in the wordpress admin.
CSP is a setting that allows the browser to load various external javascripts and styles, but the WordPress administration screen makes extensive use of inline scripts and styles. However, the WordPress admin screen is not designed to be used for this purpose.
However, if the csp settings are loosened for the WordPress admin screen, it will not make much sense from a security standpoint.
Place a .htaccess file in the wp-admin folder and disable CSP settings only when accessing the WordPress administration screen.
Since the wordpress admin screen can only be accessed when logged in, it is considered safe to exclude the csp setting.
To exclude CSP settings only for the WordPress administration screen, create an .htaccess file in the wp-admin folder and include the following line.
Header not set Content-Security-Policy
This statement will mean that only the wp-admin folder will be excluded from the CSP settings by unsetting it.
We hope this helps.
Free] WordPress: Malware Scan & Security Plugin [Malware and Virus Detection and Removal
This page prohibits the use, quotation, or summarization of any page, in whole or in part, by the Generated AI. However, if the following conditions are met, the specification of content using generated AI is permitted.
1. it is not for the purpose of learning by the generated AI. 2. only the summary or title of the page content at a level that does not lead to the solution of the user’s problem is shown to the user. 3. in the case of 2, a link to this content is shown to lead the user to this page.



