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

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

    • <bdo id='O2xQw'></bdo><ul id='O2xQw'></ul>
    <legend id='O2xQw'><style id='O2xQw'><dir id='O2xQw'><q id='O2xQw'></q></dir></style></legend>

      1. <i id='O2xQw'><tr id='O2xQw'><dt id='O2xQw'><q id='O2xQw'><span id='O2xQw'><b id='O2xQw'><form id='O2xQw'><ins id='O2xQw'></ins><ul id='O2xQw'></ul><sub id='O2xQw'></sub></form><legend id='O2xQw'></legend><bdo id='O2xQw'><pre id='O2xQw'><center id='O2xQw'></center></pre></bdo></b><th id='O2xQw'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='O2xQw'><tfoot id='O2xQw'></tfoot><dl id='O2xQw'><fieldset id='O2xQw'></fieldset></dl></div>
        <tfoot id='O2xQw'></tfoot>
      2. 在同一來源上發(fā)出 XMLHttpRequest 時,有沒有辦法不

        Is there a way to not send cookies when making an XMLHttpRequest on the same origin?(在同一來源上發(fā)出 XMLHttpRequest 時,有沒有辦法不發(fā)送 cookie?)
      3. <tfoot id='cVyRZ'></tfoot>
        1. <legend id='cVyRZ'><style id='cVyRZ'><dir id='cVyRZ'><q id='cVyRZ'></q></dir></style></legend>

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

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

                • <bdo id='cVyRZ'></bdo><ul id='cVyRZ'></ul>
                  本文介紹了在同一來源上發(fā)出 XMLHttpRequest 時,有沒有辦法不發(fā)送 cookie?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我正在開發(fā)一個為用戶解析 gmail rss 提要的擴展程序.如果他們不想保持登錄狀態(tài),我允許用戶指定用戶名/密碼.但是,如果用戶已登錄并且提供的用戶名/密碼用于不同的帳戶,則這會中斷多次登錄.所以我想避免發(fā)送任何 cookie,但仍然能夠在 send() 調(diào)用中發(fā)送用戶名/密碼.

                  I'm working on an extension that parses the gmail rss feed for users. I allow the users to specify username/passwords if they don't want to stay signed-in. But this breaks for multiple sign-in if the user is signed-in and the username/password provided is for a different account. So I want to avoid sending any cookies but still be able to send the username/password in the send() call.

                  推薦答案

                  從 Chrome 42 開始,fetch API 允許 Chrome 擴展(以及Web 應(yīng)用程序)來執(zhí)行無 cookie 請求.HTML5 Rocks 提供了有關(guān)使用 fetch API 的介紹性教程.

                  As of Chrome 42, the fetch API allows Chrome extensions (and web applications in general) to perform cookie-less requests. HTML5 Rocks offers an introductory tutorial on using the fetch API.

                  fetch 的高級文檔目前非常稀少,但 規(guī)范中的 API 接口 是一個很好的起點.接口下面描述的 fetch 算法顯示 fetch 生成的請求默認是沒有憑據(jù)的!

                  Advanced documentation on fetch is quite sparse at the moment, but the API interface from the specification is a great starting point. The fetch algorithm described below the interface shows that requests generated by fetch have no credentials by default!

                  fetch('http://example.com/').then(function(response) {
                      return response.text(); // <-- Promise<String>
                  }).then(function(responseText) {
                      alert('Response body without cookies:
                  ' + responseText);
                  }).catch(function(error) {
                      alert('Unexpected error: ' + error);
                  });
                  

                  如果你想要真正的匿名請求,你也可以禁用緩存:

                  If you want truly anonymous requests, you could also disable the cache:

                  fetch('http://example.com/', {
                      // credentials: 'omit', // this is the default value
                      cache: 'no-store',
                  }).then(function(response) {
                      // TODO: Handle the response.
                      // https://fetch.spec.whatwg.org/#response-class
                      // https://fetch.spec.whatwg.org/#body
                  });
                  

                  這篇關(guān)于在同一來源上發(fā)出 XMLHttpRequest 時,有沒有辦法不發(fā)送 cookie?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調(diào)用 abort (jQuery) 之后,瀏覽器也會等待 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 無法加載,請求的資源上不存在“Access-Control-Allow-Origin標頭) - IT屋-程序員軟件開發(fā)技術(shù)分
                  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 部分內(nèi)容)

                  <legend id='OnGrI'><style id='OnGrI'><dir id='OnGrI'><q id='OnGrI'></q></dir></style></legend>
                  <tfoot id='OnGrI'></tfoot>

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

                        • <small id='OnGrI'></small><noframes id='OnGrI'>

                            <tbody id='OnGrI'></tbody>
                          • <bdo id='OnGrI'></bdo><ul id='OnGrI'></ul>

                          • 主站蜘蛛池模板: 成人免费网站 | 亚洲综合成人网 | 白浆在线 | 国产乱码精品一品二品 | 二区国产| 操操日 | 黄色毛片黄色毛片 | 久久高清国产 | 亚洲最大av网站 | 神马久久久久久久久久 | 91在线免费观看 | 风间由美一区二区三区在线观看 | 九九亚洲精品 | 精品久久香蕉国产线看观看亚洲 | 午夜欧美一区二区三区在线播放 | 久久久xxx| 久久久久国产精品 | 天天欧美| 色接久久| 日韩久久久久久久久久久 | 欧美日韩成人 | 9porny九色视频自拍 | 国产95在线 | 超碰在线人人干 | 欧美精品国产一区二区 | 日韩欧美视频 | 成人av免费 | 四虎影院久久 | 男女视频在线免费观看 | 日韩国产一区二区三区 | 中文在线播放 | 99在线国产 | 在线免费观看毛片 | 色.com| 激情在线视频 | 国产视频不卡一区 | 日韩超碰在线 | 日韩欧美三级电影在线观看 | 欧美韩一区二区 | 国产高清精品在线 | 亚洲精品乱码久久久久久按摩 |