• 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)
  • 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

    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 7 years, 1 month ago by SS88 LLC.

    Super. Worked for me. Thanks Steven

    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.