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

<small id='2Z9T1'></small><noframes id='2Z9T1'>

<legend id='2Z9T1'><style id='2Z9T1'><dir id='2Z9T1'><q id='2Z9T1'></q></dir></style></legend>
      <tfoot id='2Z9T1'></tfoot>

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

        <bdo id='2Z9T1'></bdo><ul id='2Z9T1'></ul>

      1. 我可以在與從該端口加載的腳本文件不同的端口

        Can I use XMLHttpRequest on a different port from a script file loaded from that port?(我可以在與從該端口加載的腳本文件不同的端口上使用 XMLHttpRequest 嗎?)

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

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

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

                  <tbody id='XS2Kg'></tbody>
                <legend id='XS2Kg'><style id='XS2Kg'><dir id='XS2Kg'><q id='XS2Kg'></q></dir></style></legend>

                  本文介紹了我可以在與從該端口加載的腳本文件不同的端口上使用 XMLHttpRequest 嗎?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我有使用 XMLHttpRequest(實際上是 jQuery)的網(wǎng)站.我還在同一臺服務(wù)器上運行了另一個站點,該站點提供一個腳本文件,該腳本文件將 XHR 請求返回到該站點,即.

                  I have website that use XMLHttpRequest (jQuery, actually). I also have another site running on the same server, which serves a script file that makes XHR requests back to THAT site, ie.

                  http://mysite:50000/index.html包括

                  http://mysite:50000/index.html includes

                  <script src="http://mysite:9000/otherscript.js"></script>
                  

                  并且http://mysite:9000/otherscript.js包括

                  and http://mysite:9000/otherscript.js includes

                  $.ajax({
                      url: 'http://mysite:9000/ajax/stuff'
                  });
                  

                  問題是 - 這不起作用.來自加載腳本的 AJAX 請求只是失敗,沒有錯誤消息.據(jù)我所知,這是舊的同源政策.鑒于我控制了這兩個站點,我能做些什么來完成這項工作嗎?document.domain"技巧似乎對 XMLHttpRequest 沒有任何作用.

                  The problem is - this doesn't work. The AJAX requests from the loaded script simply fail with no error message. From what I've been able to find this is the old same origin policy. Given that I control both sites, is there anything I can do to make this work? The "document.domain" trick doesn't seem to do a thing for XMLHttpRequest.

                  推薦答案

                  不,XHR 無法做到這一點.同域策略非常嚴(yán)格——相同的主機、相同的端口、相同的協(xié)議.對不起!您必須借助其他技巧(iframe、標(biāo)題操作等)才能使其正常工作.

                  Nope- can't do this with XHR. Same-domain policy is very restrictive there- same host, same port, same protocol. Sorry! You'll have to resort to other tricks (iframes, title manipulation, etc) to get it to work.

                  這篇關(guān)于我可以在與從該端口加載的腳本文件不同的端口上使用 XMLHttpRequest 嗎?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  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)容)
                  Restrictions of XMLHttpRequest#39;s getResponseHeader()?(XMLHttpRequest 的 getResponseHeader() 的限制?)
                    <tbody id='SrBM3'></tbody>

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

                          1. <legend id='SrBM3'><style id='SrBM3'><dir id='SrBM3'><q id='SrBM3'></q></dir></style></legend>

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

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

                            主站蜘蛛池模板: 人人草人人爱 | 国产天堂在线 | 亚洲福利视频一区 | 四虎看片 | 欧美日韩国产三级 | 免费毛片视频 | 伊人网综合 | 国产成人精品一区二 | 国产精品永久久久久久久久久 | 免费看毛片的网站 | 一区二区三区高清 | 中文字幕一区二区三区在线观看 | 成人毛片在线 | 国产在线观看网站 | 亚洲免费视频网站 | 国产三级在线观看视频 | 欧美视频在线播放 | 亚洲精品乱码久久久久久 | 韩日视频| 插插插av| 欧美日韩在线精品 | www.婷婷.com | 婷婷97 | 日韩免费高清 | 夜夜操天天操 | 国产精品一区二区在线播放 | 日韩av在线免费播放 | 四虎免费在线观看 | www日韩 | 欧美有码视频 | 日本中文在线 | 日韩亚洲欧美在线 | 好色婷婷 | www欧美 | 亚洲一区二区在线播放 | 亚洲综合精品 | 欧美一区二区在线 | 久久久综合视频 | 一区二区国产视频 | 久久久久久亚洲 | 亚洲一级免费视频 |