Title: &#8220;Refused to execute script&#8221; console error
Last modified: April 18, 2017

---

# “Refused to execute script” console error

 *  [codyarsenault](https://wordpress.org/support/users/codyarsenault/)
 * (@codyarsenault)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/refused-to-execute-script-console-error/)
 * Hi,
 * When checking the Chrome devtools console of a particular page that has Disqus
   comments enabled, I am receiving the following error:
 * `Refused to execute script from 'https://example.com/?cf_action=sync_comments&
   post_id=111' because its MIME type ('text/html') is not executable, and strict
   MIME type checking is enabled.`
 * Any idea on how to resolve this?
 * Thanks

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

 *  [zweihander](https://wordpress.org/support/users/zweihander/)
 * (@zweihander)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/refused-to-execute-script-console-error/#post-9218959)
 * Also getting this error.
 * Chrome:
    `Refused to execute script from 'https://www.local.com/2017/06/05/localpost/?
   cf_action=sync_comments&post_id=123' because its MIME type ('text/html') is not
   executable, and strict MIME type checking is enabled.'`
 * Firefox:
    `The resource from “https://www.local.com/2017/06/05/localpost/?cf_action
   =sync_comments&post_id=123” was blocked due to MIME type mismatch (X-Content-
   Type-Options: nosniff).`
 * Edge:
    `SEC7112: Script from https://www.local.com/2017/06/05/localpost/?cf_action
   =sync_comments&post_id=123was blocked due to mime type mismatch`
 *  [Sully](https://wordpress.org/support/users/ss88_uk/)
 * (@ss88_uk)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/refused-to-execute-script-console-error/#post-9540813)
 * I’ve been waiting for Disqus to fix this too. 🙁
 * This is for Version 2.87:
 * Open up /wp-content/plugins/disqus-comment-system/disqus.php
 * Find line 503 (should be blank) and add:
 * `header('Content-Type: application/javascript');`
 * Then lines 502, 503, 504 should look like:
 *     ```
       dsq_add_pending_post_id($post_id);
       header('Content-Type: application/javascript');
       if (DISQUS_DEBUG) {
       ```
   
    -  This reply was modified 8 years, 8 months ago by [Sully](https://wordpress.org/support/users/ss88_uk/).
 *  [formerfatguy](https://wordpress.org/support/users/formerfatguy/)
 * (@formerfatguy)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/refused-to-execute-script-console-error/#post-9744240)
 * Super. Worked for me. Thanks Steven
 *  [samuelmarkno](https://wordpress.org/support/users/samuelmarkno/)
 * (@samuelmarkno)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/refused-to-execute-script-console-error/#post-9922238)
 * Also getting this error. in all browsers

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

The topic ‘“Refused to execute script” console error’ is closed to new replies.

 * ![](https://ps.w.org/disqus-conditional-load/assets/icon-128x128.png?rev=1643519)
 * [Disqus Conditional Load](https://wordpress.org/plugins/disqus-conditional-load/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/disqus-conditional-load/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/disqus-conditional-load/)
 * [Active Topics](https://wordpress.org/support/plugin/disqus-conditional-load/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/disqus-conditional-load/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/disqus-conditional-load/reviews/)

 * 4 replies
 * 5 participants
 * Last reply from: [samuelmarkno](https://wordpress.org/support/users/samuelmarkno/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/refused-to-execute-script-console-error/#post-9922238)
 * Status: not resolved