久久久久久久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 政策?的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                問(wèn)題描述

                我將這些端點(diǎn)與 JavaScript Ajax 一起使用來(lái)獲取 Instagram 用戶(hù)信息和帖子:

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

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

                以前沒(méi)有 CORS 策略錯(cuò)誤,但現(xiàn)在我收到了該錯(cuò)誤(不是每次刷新頁(yè)面時(shí),但幾乎 95% 次):

                CORS 政策已阻止從源https://sitename.com"訪(fǎng)問(wèn)https://www.instagram.com/hannahstocking/?__a=1"處的 XMLHttpRequest:無(wú)訪(fǎng)問(wèn)權(quán)限-請(qǐng)求的資源上存在 Control-Allow-Origin 標(biāo)頭.

                Instagram 是否已開(kāi)始阻止這些端點(diǎn)或添加了新的速率限制?我該如何解決?

                解決方案

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

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

                這讓我相信他們正在限制網(wǎng)站顯示 API 數(shù)據(jù).數(shù)據(jù)本身仍然可以訪(fǎng)問(wèn),只是不能直接通過(guò)網(wǎng)站訪(fǎng)問(wèn).您需要使用代理或服務(wù)器來(lái)解決它

                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

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

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

                相關(guān)文檔推薦

                Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調(diào)用 abort (jQuery) 之后,瀏覽器也會(huì)等待 ajax 調(diào)用完成)
                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 無(wú)法加載,請(qǐng)求的資源上不存在“Access-Control-Allow-Origin標(biāo)頭) - IT屋-程序員軟件開(kāi)發(fā)技術(shù)分
                Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請(qǐng)求是否有可能不遵循重定向 (301 302))
                NETWORK_ERROR: XMLHttpRequest Exception 101(NETWORK_ERROR:XMLHttpRequest 異常 101)
                XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內(nèi)容)

                <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>
                          主站蜘蛛池模板: 欧美精品一区二区蜜桃 | 国产精品a久久久久 | aaaa日韩| 国产欧美日韩一区 | 国产日韩欧美中文 | 亚洲a在线观看 | 国产精品久久久久久久久久久新郎 | 国产免费一区二区 | 欧美一区二区三区视频在线 | www.成人.com| 欧美激情在线精品一区二区三区 | 国产精品视频不卡 | 国产精品视频在 | 视频精品一区二区三区 | 黄色三级免费 | 夜夜爽99久久国产综合精品女不卡 | 日韩一区二区在线视频 | 欧美性极品xxxx做受 | 日本黄色影片在线观看 | 黄色网一级片 | 欧美在线一区二区三区 | 亚洲网址在线观看 | 欧洲精品码一区二区三区免费看 | 九九九久久国产免费 | 爱草在线 | 免费日韩av网站 | 天天插天天狠天天透 | 亚洲图片一区二区三区 | 一级片在线观看视频 | 操操日 | 老司机午夜性大片 | 狠狠爱视频 | 欧美大片在线观看 | 99久久免费精品国产男女高不卡 | 黄免费在线 | 精品国产一区二区在线 | 一区二区三区免费观看 | 国产一区二区毛片 | 久久99精品久久久久婷婷 | 久久精品一级 | 国内在线视频 |