Title: Javascript in the admin area breaks using plugin?
Last modified: February 1, 2021

---

# Javascript in the admin area breaks using plugin?

 *  [markm75](https://wordpress.org/support/users/markm75/)
 * (@markm75)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/javascript-in-the-admin-area-breaks-using-plugin/)
 * I cant figure this out, thanks to this plugin i can get passing grades on security,
   but something breaks javascript (can tell because there is java in the admin 
   areas that no longer works).
 * If i disable the plugin it works again.
 * I’ve tried going through and manually turning off things but that doesnt seem
   to help?
 * Anyone have any thoughts?

Viewing 1 replies (of 1 total)

 *  [maxoud](https://wordpress.org/support/users/maxoud/)
 * (@maxoud)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/javascript-in-the-admin-area-breaks-using-plugin/#post-14080116)
 * Likely your Content Security Policy (CSP) blocks inline scripts (doesn’t allow`
   unsafe-inline`). Allowing `unsafe-inline` endangers security, though.
 * It’s possible to securely allow inline content through _SRI hash_ or _nonce_ (
   not the one WordPress-native), but there is no any acceptable way to implement
   them without manual changes to the Core and plugins on every update.
 * The only way is to change the CSP policy to less secure allowing `unsafe-inline`
   script and style sources.
 * See [CSP Sources](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src#sources)
   for _hash_ and _nonce_ and [SRI](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity).
 * P. S. Use Web Developer’s Console (Ctrl+Shift+K or Cmd+Shift+K) to check what
   scripts have been blocked and which directive is responsible for that.
    -  This reply was modified 5 years, 1 month ago by [maxoud](https://wordpress.org/support/users/maxoud/).
    -  This reply was modified 5 years, 1 month ago by [maxoud](https://wordpress.org/support/users/maxoud/).

Viewing 1 replies (of 1 total)

The topic ‘Javascript in the admin area breaks using plugin?’ is closed to new replies.

 * ![](https://ps.w.org/http-headers/assets/icon-128x128.png?rev=1413576)
 * [HTTP Headers](https://wordpress.org/plugins/http-headers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/http-headers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/http-headers/)
 * [Active Topics](https://wordpress.org/support/plugin/http-headers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/http-headers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/http-headers/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [maxoud](https://wordpress.org/support/users/maxoud/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/javascript-in-the-admin-area-breaks-using-plugin/#post-14080116)
 * Status: not resolved