Title: Error in the browser console
Last modified: October 20, 2022

---

# Error in the browser console

 *  Resolved [luciaredondo](https://wordpress.org/support/users/luciaredondo/)
 * (@luciaredondo)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/error-in-the-browser-console/)
 * Good morning!
 * I have started to get the error in the browser console: [Report Only] Refused
   to execute inline script because it violates the following Content Security Policy
   directive: “script-src ‘none'”. Either the ‘unsafe-inline’ keyword, a hash (‘
   sha256-PxjnZyhY6fbHzjlPnSbVWO/Ljy3VBYgVmZM9N6h/9pI=’), or a nonce (‘nonce-…’)
   is required to enable inline execution.
 * It has been suddenly and I don’t know what I could do to solve the error. If 
   I deactivate the plugin it disappears.
 * I am waiting for your answer,
    Best regards
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-in-the-browser-console%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [luciaredondo](https://wordpress.org/support/users/luciaredondo/)
 * (@luciaredondo)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/error-in-the-browser-console/#post-16118659)
 * If you view it in incognito mode, the error does not appear.
 *  Plugin Author [micropat](https://wordpress.org/support/users/micropat/)
 * (@micropat)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/error-in-the-browser-console/#post-16120405)
 * The `Report Only` “error” is totally fine (if slightly annoying to see in DevTools)—
   it just means the page was loaded with the [`content-security-policy-report-only`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only)
   header so a tool of yours can provide insight into what assets are being loaded
   on your pages.
 * Really, this console “error” [should be a warning](https://developer.chrome.com/blog/csp-issues/#what-is-a-content-security-policy)
   in DevTools to avoid confusion.
 * Adding to the confusion, some security plugins or services implement the header
   only on a percentage of page requests. Cloudflare’s optional [Page Shield](https://developers.cloudflare.com/page-shield/)
   is one such service.
 * For sites that go beyond “Report Only” and implement a Content Security Policy,
   [AddToAny supports that](https://www.addtoany.com/buttons/faq/#content-security-policy)
   as well.
 *  Thread Starter [luciaredondo](https://wordpress.org/support/users/luciaredondo/)
 * (@luciaredondo)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/error-in-the-browser-console/#post-16120860)
 * Thank you very much

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error in the browser console’ is closed to new replies.

 * ![](https://ps.w.org/add-to-any/assets/icon.svg?rev=972738)
 * [AddToAny Share Buttons](https://wordpress.org/plugins/add-to-any/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/add-to-any/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/add-to-any/)
 * [Active Topics](https://wordpress.org/support/plugin/add-to-any/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/add-to-any/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/add-to-any/reviews/)

## Tags

 * [browser](https://wordpress.org/support/topic-tag/browser/)
 * [CSP](https://wordpress.org/support/topic-tag/csp/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 3 replies
 * 2 participants
 * Last reply from: [luciaredondo](https://wordpress.org/support/users/luciaredondo/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/error-in-the-browser-console/#post-16120860)
 * Status: resolved