由于MIME类型问题(Javascript,谷歌浏览器)拒绝执行脚本 [英] Refused to execute script due to MIME Type issue (Javascript, Google Chrome)

查看:455
本文介绍了由于MIME类型问题(Javascript,谷歌浏览器)拒绝执行脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的网站上收到此错误消息:

I'm getting this error message on my website:

拒绝执行来自'http://viralsmods.com/scripts的脚本/loader.php?sids[]=1&sids[]=3&_=1429706046304'因为其MIME类型('image / gif')不可执行。

有问题的脚本是一个PHP文件,用于以隐藏目的用 gif MIME类型吐出JavaScript(我知道这不是万无一失的,但只是一点点威慑)。

The script in question is a PHP file that spits out JavaScript with a gif MIME type for concealment purposes (I understand this is not fool proof, but just a slight deterrent).

无论如何,这对我来说已经好几年了,突然Chrome在开发人员工具控制台中给了我上述错误。知道原因吗?

Anyways, this has been working fine for me for years and suddenly Chrome is giving me the above error in the developer tools console. Any idea as to why?

推荐答案

Google大约每6周自动更新一次。可能会添加检查以包含Javascript文件,以帮助防止执行错误文件或阻止某些安全威胁的问题。

Google updates automatically about every 6 weeks. There were probably checks added to the inclusion of Javascript files to help prevent problems executing bad files or thwart some security threat.

这篇关于由于MIME类型问题(Javascript,谷歌浏览器)拒绝执行脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆