且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

JSONP请求:“将资源解释为脚本,但以MIME类型text/html传输"

更新时间:2022-04-07 21:09:36

我的jsonp请求有相同的问题.我

I had the same issue with my jsonp requests. I got

资源被解释为脚本,但以MIME类型text/plain传输

Resource interpreted as Script but transferred with MIME type text/plain

,但是一旦将响应"Content-Type"标头设置为"text/javascript",就可以解决它.但这只有在您控制服务器的情况下才能完成.因此,要么告诉lujanventas.com尝试更改"ContentType"标头,要么忽略它:)

, but once I set the response "Content-Type" header to "text/javascript", I get it resolved. But this could only be done if you control the server. So either tell lujanventas.com to try to change the "ContentType" header, or ignore it :)

干杯!