Jump to content

MIME type is not executable

Recommended Posts

Site URL: https://www.goodbeerhunting.com

I'm getting the error

Refused to execute script from 'https://www.goodbeerhunting.com/dynamic/1234kdjeld?format=json&callback=jQuery1111035353247486359707_1594910433540&_=1594910433541' because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled.

I'm not sure what changed or why the MIME type is no longer executable. Anyone else having this type of issue?

My code in the js file looks like this:

$.getJSON('//goodbeerhunting.com/dynamic/1234kdjeld?format=json&callback=?', function(data) {

				var content = $(data.mainContent).find('.' + item);
				$('.ddd-' + item).replaceWith(content);

I tried adding this:

    scriptCharset: "utf-8",
    contentType: "application/json; charset=utf-8"

And that made the error message go away, but it didn't fix the issue and allow the correct info to display on the page.

Any help is appreciated.

Link to comment
  • Replies 0
  • Views 873
  • Created
  • Last Reply


This topic is now archived and is closed to further replies.

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.