Отказано в выполнении скрипта из ‘https://s2020293361.t.eloqu-потому что его тип MIME ('text/HTML’) не является исполняемым
Hi All, Am unable to resolving this issue please provide me any solution to fix this. am getting an below error Refused to execute script from ‘https://s2020293361.t.eloqu’ because its MIME type (‘text/html’) is Thanks Bharath
Что я уже пробовал:
i tried with all the links below mentioned but am not able to finding the right solution links: Chrome refuses to execute an AJAX script due to wrong MIME type Disable Chrome strict MIME type checking Refused to execute script, strict MIME type checking is enabled? Link and execute external JavaScript file hosted on GitHub $.ajax({ url: 'https://example.com', type: 'post', dataType: "jsonp", contentType: "application/javascript", success: function (msg) { console.log("success"); }, error: function (request, status, error) { console.log(error); } }); i tried with diff contentTypes like "text/html","text/javascript","application/jsonp" and removed from webconfig below line <pre><remove name="X-Content-Type-Options" /> <add name="X-Content-Type-Options" value="nosniff" />
добавлены заголовки http-ответов в iis X-Content-Type-Options
все еще получаю ту же ошибку, пожалуйста, предложите мне исправить это
Спасибо
Бхарат