久久久久久久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)本地主機地址的混合內(nèi)

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

    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)本地主機地址的混合內(nèi)容請求未被阻止的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

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

                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?

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

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

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

                <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 不被視為混合內(nèi)容,因為混合內(nèi)容規(guī)范將其定義為先驗認(rèn)證 URL,因為它在 127.0.0.0 - 127.255.255.255 范圍內(nèi)(即具有 CIDR 表示法 127.0.0.0/8 的主機),根據(jù)安全上下文規(guī)范被定義為安全上下文——即使協(xié)議不是 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

                這篇關(guān)于從 HTTPS 頁面到 HTTP(非 HTTPS)本地主機地址的混合內(nèi)容請求未被阻止的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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標(biāo)頭) - 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='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'>

                          主站蜘蛛池模板: 成人免费三级电影 | 国产精品久久国产愉拍 | 国产ts人妖另类 | 一区二区三区亚洲 | 亚洲在线一区 | 亚洲欧美成人 | 91久久国产综合久久91精品网站 | 国产精品入口久久 | 国产高清视频 | 国产中文字幕在线 | 91精品国产综合久久婷婷香蕉 | 日韩中文在线视频 | 欧美专区在线 | 亚洲一区二区三区免费观看 | 国产精品久久7777777 | 91国内在线观看 | 国产一区电影 | 日韩视频精品在线 | 免费视频一区二区 | av国产在线观看 | 久久国产精品无码网站 | 国产午夜高清 | 男女视频在线看 | 欧美中文一区 | 午夜寂寞影院在线观看 | 精品国产99| 国户精品久久久久久久久久久不卡 | 91污在线 | 天天操综合网站 | 成人av片在线观看 | 亚洲精品v日韩精品 | a级毛片免费高清视频 | 久久久.com | 亚洲大片 | 国产成人精品一区 | 欧美性区| 美日韩免费 | 涩涩视频网站在线观看 | 欧美日韩一区二区视频在线观看 | 国产成人啪免费观看软件 | 夜夜艹天天干 |