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

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

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

<legend id='PTahP'><style id='PTahP'><dir id='PTahP'><q id='PTahP'></q></dir></style></legend>
  • <tfoot id='PTahP'></tfoot>
        <bdo id='PTahP'></bdo><ul id='PTahP'></ul>
      1. 如何將基本身份驗證標頭分配給 XMLHTTPREQUEST?

        How to assign basic authentication header to XMLHTTPREQUEST?(如何將基本身份驗證標頭分配給 XMLHTTPREQUEST?)
      2. <tfoot id='qRbAH'></tfoot>
        <i id='qRbAH'><tr id='qRbAH'><dt id='qRbAH'><q id='qRbAH'><span id='qRbAH'><b id='qRbAH'><form id='qRbAH'><ins id='qRbAH'></ins><ul id='qRbAH'></ul><sub id='qRbAH'></sub></form><legend id='qRbAH'></legend><bdo id='qRbAH'><pre id='qRbAH'><center id='qRbAH'></center></pre></bdo></b><th id='qRbAH'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='qRbAH'><tfoot id='qRbAH'></tfoot><dl id='qRbAH'><fieldset id='qRbAH'></fieldset></dl></div>

              <tbody id='qRbAH'></tbody>
            • <small id='qRbAH'></small><noframes id='qRbAH'>

                <bdo id='qRbAH'></bdo><ul id='qRbAH'></ul>

                  <legend id='qRbAH'><style id='qRbAH'><dir id='qRbAH'><q id='qRbAH'></q></dir></style></legend>

                  本文介紹了如何將基本身份驗證標頭分配給 XMLHTTPREQUEST?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我已經閱讀了很多關于 preflight 和 CORS 的答案,所以請不要發布鏈接引用我應該閱讀的內容.許多答案都是從服務器的角度來看的,但在這種情況下,我是客戶.我是否設置了原始標頭?我的假設是這是一個簡單的請求,對嗎?

                  I've read many answers of preflight and CORS so please do not post links referencing what I should read. Many of the answers are from a server-perspective, but I am the client in this case. Do I set the origin header? My assumption is that this is a simple request, am I right?

                   req.open("POST", url, true);
                   req.setRequestHeader( 'Content-Type',   'application/blahblah' );
                   req.setRequestHeader( 'Accept', 'application/blahblah' );
                   req.setRequestHeader("Authorization", "Basic " + btoa(user + ":" + pass)); 
                   req.send();
                  

                  但它仍然無法正常工作,我的錯誤:

                  Yet its still not working, my error:

                  對預檢請求的響應未通過訪問控制檢查:請求的資源上不存在Access-Control-Allow-Origin"標頭.因此,Origin 'null' 不允許訪問.響應的 HTTP 狀態代碼為 500.

                  Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. The response had HTTP status code 500.

                  推薦答案

                  解決方案:

                  var req = new XMLHttpRequest();
                      req.setRequestHeader('Authorization', 'Basic [base64 encoded password here]' );
                  

                  這篇關于如何將基本身份驗證標頭分配給 XMLHTTPREQUEST?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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))
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內容)
                  Restrictions of XMLHttpRequest#39;s getResponseHeader()?(XMLHttpRequest 的 getResponseHeader() 的限制?)
                1. <tfoot id='IG0By'></tfoot>
                    <legend id='IG0By'><style id='IG0By'><dir id='IG0By'><q id='IG0By'></q></dir></style></legend>
                    • <bdo id='IG0By'></bdo><ul id='IG0By'></ul>

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

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

                            主站蜘蛛池模板: 欧美国产激情二区三区 | 国产日韩一区二区 | 欧美男人天堂 | 在线观看国产视频 | 久久久精彩视频 | 日韩视频在线观看一区二区 | 欧美一区二区三区久久精品 | 久久久久久国产精品 | 久久小视频 | 精品国产一区二区三区久久 | 久久久久久国产精品三区 | 一二区视频 | 一区二区在线不卡 | 狠狠操狠狠操 | 久久精品久久久 | 欧美一级大黄 | 不卡一二三区 | 久久夜视频 | 日韩中文字幕在线视频观看 | 亚洲电影在线播放 | 欧美精品一区二区三区在线播放 | 国产一区 | 免费观看www7722午夜电影 | aaa在线观看 | 91av在线电影 | 午夜一区二区三区 | 福利国产 | 97中文视频| 资源首页二三区 | 五月天激情综合网 | 欧美在线视频观看 | 欧美一级片 | 欧美国产中文 | 午夜影院中文字幕 | 97精品国产97久久久久久免费 | av大片在线观看 | 久久精品免费一区二区 | 久久精品色视频 | 成人在线一区二区 | 国产精品久久久乱弄 | 欧美极品在线播放 |