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

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

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

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

      從 HTTPS 頁面到 HTTP(非 HTTPS)本地主機地址的混合內

      Mixed-content request from HTTPS page to HTTP (non-HTTPS) localhost address not blocked(從 HTTPS 頁面到 HTTP(非 HTTPS)本地主機地址的混合內容請求未被阻止)

    3. <tfoot id='I3Kdx'></tfoot>

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

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

                <bdo id='I3Kdx'></bdo><ul id='I3Kdx'></ul>
                本文介紹了從 HTTPS 頁面到 HTTP(非 HTTPS)本地主機地址的混合內容請求未被阻止的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                假設下面的頁面是從 https://127.0.100.1 加載的.該頁面向 http://127.0.100.2 發出 XMLHttpRequest.這似乎是混合內容:頁面通過安全連接加載,資源通過不安全連接加載.混合內容應被瀏覽器阻止.然而,下面的頁面運行良好.* 為什么會運行:為什么請求沒有被阻止?

                Suppose the page below is loaded from https://127.0.100.1. The page makes an XMLHttpRequest to http://127.0.100.2. This seems like mixed content: The page is loaded over a secure connection and a resource is loaded over an insecure connection. Mixed content should be blocked by the browser. Yet, the page below works just fine.* Why does it work: Why isn't the request blocked?

                更新:超越接受的答案,瀏覽器可以配置來阻止此類地址的混合內容.

                Update: Going beyond the accepted answer, browsers can be configured to block mixed content for such addresses.

                * Wireshark 確認瀏覽器沒有通過安全連接加載資源.

                <html>
                <body>
                <img id="dst"/>
                <script>
                  let xhr = new XMLHttpRequest();
                  xhr.open('get', 'http://127.0.100.2/img.jpg');
                  xhr.responseType = 'blob';
                  xhr.onload = function(){
                    document.getElementById('dst').src = URL.createObjectURL(xhr.response);    
                  }
                  xhr.send();
                </script>
                </body>
                </html>
                

                推薦答案

                http://127.0.100.2/img.jpg 不被視為混合內容,因為混合內容規范將其定義為先驗認證 URL,因為它在 127.0.0.0 - 127.255.255.255 范圍內(即具有 CIDR 表示法 127.0.0.0/8 的主機),根據安全上下文規范被定義為安全上下文——即使協議不是 https.

                http://127.0.100.2/img.jpg isn’t considered mixed content because the Mixed Content spec defines it as a special case of an a priori authenticated URL, due to it being in the range 127.0.0.0 - 127.255.255.255 (that is, a host with the CIDR notation 127.0.0.0/8), which per the Secure Contexts spec is defined as a secure context — even if the protocol isn’t https.

                http://localhost/img.jpghttp://foo.localhost/img.jpg

                這篇關于從 HTTPS 頁面到 HTTP(非 HTTPS)本地主機地址的混合內容請求未被阻止的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 部分內容)
                <legend id='n0xmS'><style id='n0xmS'><dir id='n0xmS'><q id='n0xmS'></q></dir></style></legend>

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

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

                        • <tfoot id='n0xmS'></tfoot>
                        • <small id='n0xmS'></small><noframes id='n0xmS'>

                          主站蜘蛛池模板: 久久国产精品视频 | 成人午夜影院 | 日本超碰 | 精产国产伦理一二三区 | 黄色网址在线免费播放 | 久久日韩精品一区二区三区 | 性一交一乱一透一a级 | 国产人成精品一区二区三 | 精品久久国产 | 视频一区二区三区四区五区 | 国产日韩一区二区 | 在线免费黄色小视频 | 日韩欧美精品在线 | 黄色片在线免费看 | 欧美福利网站 | 久久综合一区二区 | 欧美日韩亚| 91成人| 可以免费看的毛片 | 韩国主播午夜大尺度福利 | 日韩中文字幕 | 欧美日韩一区二区三区四区五区 | 久久久激情视频 | 国产精品久久久久久久久久久久午夜片 | 二区高清 | 午夜天堂精品久久久久 | www.日日干 | 干干天天 | 亚洲精品一区二区在线观看 | av资源在线看 | 日韩在线观看网站 | 一区二区在线不卡 | 伊人精品一区二区三区 | 欧美久久视频 | 久久福利 | 国产一区二区视频在线观看 | av中文字幕在线播放 | 国产丝袜av | 国产日韩欧美一区二区 | 综合久久99 | 成人免费网站www网站高清 |