JSONP request: “Resource interpreted as Script but transferred with MIME type text/html”

后端 未结 1 770
清酒与你
清酒与你 2020-12-20 08:08

I\'m trying to do my first cross request with JSONP to get a banner from an external URL.



        
相关标签:
1条回答
  • 2020-12-20 08:53

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

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

    , 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 :)

    Cheers!

    0 讨论(0)
提交回复
热议问题