久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<small id='PSByt'></small><noframes id='PSByt'>

<legend id='PSByt'><style id='PSByt'><dir id='PSByt'><q id='PSByt'></q></dir></style></legend>
<tfoot id='PSByt'></tfoot>
<i id='PSByt'><tr id='PSByt'><dt id='PSByt'><q id='PSByt'><span id='PSByt'><b id='PSByt'><form id='PSByt'><ins id='PSByt'></ins><ul id='PSByt'></ul><sub id='PSByt'></sub></form><legend id='PSByt'></legend><bdo id='PSByt'><pre id='PSByt'><center id='PSByt'></center></pre></bdo></b><th id='PSByt'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='PSByt'><tfoot id='PSByt'></tfoot><dl id='PSByt'><fieldset id='PSByt'></fieldset></dl></div>

      • <bdo id='PSByt'></bdo><ul id='PSByt'></ul>

    1. Instagram 公共 API 的新 CORS 政策?

      New CORS policy for Instagram public API?(Instagram 公共 API 的新 CORS 政策?)
        • <legend id='di1fZ'><style id='di1fZ'><dir id='di1fZ'><q id='di1fZ'></q></dir></style></legend>
            <tbody id='di1fZ'></tbody>

            <bdo id='di1fZ'></bdo><ul id='di1fZ'></ul>
          • <i id='di1fZ'><tr id='di1fZ'><dt id='di1fZ'><q id='di1fZ'><span id='di1fZ'><b id='di1fZ'><form id='di1fZ'><ins id='di1fZ'></ins><ul id='di1fZ'></ul><sub id='di1fZ'></sub></form><legend id='di1fZ'></legend><bdo id='di1fZ'><pre id='di1fZ'><center id='di1fZ'></center></pre></bdo></b><th id='di1fZ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='di1fZ'><tfoot id='di1fZ'></tfoot><dl id='di1fZ'><fieldset id='di1fZ'></fieldset></dl></div>

            1. <tfoot id='di1fZ'></tfoot>

                <small id='di1fZ'></small><noframes id='di1fZ'>

                本文介紹了Instagram 公共 API 的新 CORS 政策?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我將這些端點與 JavaScript Ajax 一起使用來獲取 Instagram 用戶信息和帖子:

                https://www.instagram.com/[用戶名]/?__a=1

                https://www.instagram.com/graphql/query/?query_hash=472f257a40c653c64c666ce877d59d2b&variables={id:[user_id],first:50,after:''}

                以前沒有 CORS 策略錯誤,但現在我收到了該錯誤(不是每次刷新頁面時,但幾乎 95% 次):

                CORS 政策已阻止從源https://sitename.com"訪問https://www.instagram.com/hannahstocking/?__a=1"處的 XMLHttpRequest:無訪問權限-請求的資源上存在 Control-Allow-Origin 標頭.

                Instagram 是否已開始阻止這些端點或添加了新的速率限制?我該如何解決?

                解決方案

                Instagram 引入了 strict-origin-when-cross-origin 政策,只允許以下跨源網站:p>

                • https://www.instagram.com
                • https://*.fbcdn.net
                • https://*.instagram.com
                • https://*.cdninstagram.com
                • https://*.facebook.com
                • https://*.fbsbx.com

                這讓我相信他們正在限制網站顯示 API 數據.數據本身仍然可以訪問,只是不能直接通過網站訪問.您需要使用代理或服務器來解決它

                I am using these endpoints with JavaScript Ajax to get Instagram user information and posts:

                https://www.instagram.com/[username]/?__a=1

                https://www.instagram.com/graphql/query/?query_hash=472f257a40c653c64c666ce877d59d2b&variables={id:[user_id],first:50,after:''}

                There was not a CORS policy error before but now i'm getting that error (not every time when i refresh the page, but almost 95% times):

                Access to XMLHttpRequest at 'https://www.instagram.com/hannahstocking/?__a=1' from origin 'https://sitename.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

                Has Instagram started to block these endpoints or added a new rate limit? How can I fix it?

                解決方案

                Instagram has introduced a strict-origin-when-cross-origin policy and is only allowing the following cross origin sites:

                • https://www.instagram.com
                • https://*.fbcdn.net
                • https://*.instagram.com
                • https://*.cdninstagram.com
                • https://*.facebook.com
                • https://*.fbsbx.com

                This leads me to believe that they are restricting websites to display the API data. The data itself is still accessible, just not directly over a website. You would need to use a proxy or a server to resolve it

                這篇關于Instagram 公共 API 的新 CORS 政策?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調用 abort (jQuery) 之后,瀏覽器也會等待 ajax 調用完成)
                JavaScript innerHTML is not working for IE?(JavaScript innerHTML 不適用于 IE?)
                XMLHttpRequest cannot load, No #39;Access-Control-Allow-Origin#39; header is present on the requested resource(XMLHttpRequest 無法加載,請求的資源上不存在“Access-Control-Allow-Origin標頭) - IT屋-程序員軟件開發技術分
                Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請求是否有可能不遵循重定向 (301 302))
                NETWORK_ERROR: XMLHttpRequest Exception 101(NETWORK_ERROR:XMLHttpRequest 異常 101)
                XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內容)

                <i id='czTnw'><tr id='czTnw'><dt id='czTnw'><q id='czTnw'><span id='czTnw'><b id='czTnw'><form id='czTnw'><ins id='czTnw'></ins><ul id='czTnw'></ul><sub id='czTnw'></sub></form><legend id='czTnw'></legend><bdo id='czTnw'><pre id='czTnw'><center id='czTnw'></center></pre></bdo></b><th id='czTnw'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='czTnw'><tfoot id='czTnw'></tfoot><dl id='czTnw'><fieldset id='czTnw'></fieldset></dl></div>
                • <bdo id='czTnw'></bdo><ul id='czTnw'></ul>
                    • <tfoot id='czTnw'></tfoot>

                          <tbody id='czTnw'></tbody>
                      1. <small id='czTnw'></small><noframes id='czTnw'>

                          <legend id='czTnw'><style id='czTnw'><dir id='czTnw'><q id='czTnw'></q></dir></style></legend>
                          主站蜘蛛池模板: 中文字幕亚洲欧美日韩在线不卡 | 国产激情网 | 99国产精品一区二区三区 | 国产精品一区二区在线观看 | 日韩三区在线 | 一级特黄a大片 | 激情 亚洲| www日本在线播放 | 99爱国产 | 欧美成人a | 91精品国产91综合久久蜜臀 | 亚洲精品视频一区 | 欧美日韩国产在线观看 | 成人欧美一区二区三区在线播放 | 精品不卡 | 欧美不卡一区 | 欧美成人免费在线 | 久久久久久久久久毛片 | 最新av在线播放 | 天天色影视综合 | 亚洲国产精品一区二区三区 | 美女黄网| 国产成人在线一区 | 日日夜夜免费精品 | 成人av片在线观看 | 99re视频在线观看 | 一区二区视频在线观看 | 春色av| 亚洲乱码一区二区三区在线观看 | 国产精品视频一二三区 | 夜夜精品浪潮av一区二区三区 | 91色站| 毛片网站在线观看视频 | 国产精品久久久久久久久久免费看 | 伊人狠狠| 日韩在线播放第一页 | www.玖玖玖 | 欧美日本韩国一区二区三区 | 国产在线精品免费 | 久久久99国产精品免费 | 亚洲欧美在线视频 |