拒绝执行脚本

时间:2017-07-04 12:57:12

标签: javascript php ajax

我在使用jasonp数据类型通过ajax访问此URL时收到此错误。 请帮助某人解决此问题

拒绝执行'https://script.google.com/macros/s/AKfycbw4SWi16wWTR622NUVlsFacqrCWz7KB8DaZ…020319074134340642_1499172512130&name=dfgdg&comment=dfgdfg&_=1499172512131' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

的脚本

1 个答案:

答案 0 :(得分:0)

$ curl <your link> 
> moved permanently to <new link>

$ curl <new link>
> moved permanently to:

https://accounts.google.com/ServiceLogin?service=wise&amp;passive=1209600&amp;continue=https://script.google.com/macros/s/AKfycbw4SWi16wWTR622NUVlsFacqrCWz7KB8DaZ/&amp;followup=https://script.google.com/macros/s/AKfycbw4SWi16wWTR622NUVlsFacqrCWz7KB8DaZ/

$ curl -I <final link>

> ...
> Content-Type: text/html; charset=UTF-8
> ...

因此脚本以html格式发送,您需要在服务器上更改它。