Title: CSP script-src login error
Last modified: September 20, 2024

---

# CSP script-src login error

 *  Resolved [Cold Realms Tech](https://wordpress.org/support/users/coldrealms65/)
 * (@coldrealms65)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/csp-script-src-login-error/)
 * When I set the following: add_header Content-Security-Policy “default-src ‘self’;
   script-src ‘self’ ‘unsafe-inline’ ‘unsafe-eval’; style-src ‘self’ ‘unsafe-inline’;
   img-src ‘self’ data:; font-src ‘self’; frame-src ‘none’; object-src ‘none’; base-
   uri ‘self’; form-action ‘self’;”;
   I can no longer log into my site. I suspect
   the script-src needs to add something from wordfence but I am not sure. Any pointers
   as to what i should add?

Viewing 1 replies (of 1 total)

 *  Thread Starter [Cold Realms Tech](https://wordpress.org/support/users/coldrealms65/)
 * (@coldrealms65)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/csp-script-src-login-error/#post-18028010)
 * nevermind. I figured out.

Viewing 1 replies (of 1 total)

The topic ‘CSP script-src login error’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Cold Realms Tech](https://wordpress.org/support/users/coldrealms65/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/csp-script-src-login-error/#post-18028010)
 * Status: resolved