The following simplified previously working code:
$.ajax({
type: 'GET',
//dataType: 'json',
dataType: 'jsonp',
data: {},
url: "https://jsfiddle.net/api/user/afabbro/demo/list.json",
error: function (jqXHR, textStatus, errorThrown) {
console.log(jqXHR)
},
success: function (msg) {
console.log(msg);
}
});
I receive the following error:
Refused to execute script from 'https://jsfiddle.net/api/user/afabbro/demo/list.json?
callback=jQuery332 ...SNIPd... &_=1553587384' because its MIME type ('application/json')
is not executable, and strict MIME type checking is enabled.
I initially thought that the issue was json vs jsonp or http vs https. All attempts return the same result.
if you run from the addy bar the browser identifies the mime correctly & you get the json as expected:
[
{
"framework": "No-Library",
"version": 8,
"description": "",
"title": "Hello World Example",
"url": "//jsfiddle.net/afabbro/vrVAP/",
"author": "afabbro",
"latest_version": 12520,
"created": "2013-08-08 15:03:20"
}
]
The code worked as recently as yesterday. What can I do to fix it? Why is my page disputing the application/json mime?