gpt4 book ai didi

instagram - instagram 嵌入 api 的 JSONP mimetype 不匹配

转载 作者:行者123 更新时间:2023-12-04 16:04:00 25 4
gpt4 key购买 nike

我们正在使用 JSONP 方法来加载 instagram 嵌入帖子,但是最近我们遇到了响应内容类型 mime-type 不匹配的问题。
在不切换到 embed.js 或 json 的情况下修复 JSONP 方法的任何解决方案?

跨源读取阻塞 (CORB) 阻止了跨源响应 https://api.instagram.com/oembed/?url=https://www.instagram.com/p/BJPIEc8BHEI/&hidecaption=false&callback=_jsonp_instagramImage_0使用 MIME 类型应用程序/json。见 https://www.chromestatus.com/feature/5629709824032768更多细节。

和IE:
由于 MIME 类型不匹配,来自 ... 的资源被阻止

仅通过创建加载 <script>callback

最佳答案

Facebook 说:

This issue is related to the legacy Instagram API (api.instagram.com) which isn't supported via this channel; this bug reporting tool only supports issues related to the Instagram Graph API. Additionally, as the legacy Instagram API has been deprecated as of July 2018, the team is no longer accepted bug reports for this API. Thanks for your understanding.



https://developers.facebook.com/bugs/235545030662906/

另见 https://github.com/sugarshin/react-instagram-embed/issues/89 .

关于instagram - instagram 嵌入 api 的 JSONP mimetype 不匹配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54708842/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com