更新时间: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 :)
干杯!