久久久久久久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 嗎?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我有使用 XMLHttpRequest(實際上是 jQuery)的網站.我還在同一臺服務器上運行了另一個站點,該站點提供一個腳本文件,該腳本文件將 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 請求只是失敗,沒有錯誤消息.據我所知,這是舊的同源政策.鑒于我控制了這兩個站點,我能做些什么來完成這項工作嗎?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 無法做到這一點.同域策略非常嚴格——相同的主機、相同的端口、相同的協議.對不起!您必須借助其他技巧(iframe、標題操作等)才能使其正常工作.

                  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.

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

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

                  相關文檔推薦

                  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 部分內容)
                  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>

                            主站蜘蛛池模板: 亚洲精品电影在线观看 | 亚洲h色 | 国产精品亚洲欧美日韩一区在线 | 日韩欧美一区二区三区 | 亚洲国产高清在线 | 欧美福利| 欧美中文一区 | 午夜小视频在线播放 | 男人天堂99 | 大伊人久久 | 午夜影院免费体验区 | 成人二区| 日本精品国产 | 午夜精品福利视频 | 美女福利视频网站 | 亚洲一区二区三区在线视频 | 国产欧美日韩一区二区三区 | 中文字幕专区 | 曰批视频在线观看 | 免费毛片网站 | 国产成人久久精品一区二区三区 | 免费一级做a爰片久久毛片潮喷 | 黄色免费av| 国产片一区二区三区 | 在线观看黄色大片 | 日本精品久久 | 国产精品久久久久久久久久久久久久 | 欧美精品久久久久久久久久 | 成人黄色a| 国产粉嫩尤物极品99综合精品 | 中文字幕一区二区三区精彩视频 | 日日操夜夜操天天操 | 国产精品免费大片 | 亚洲精品久久久久久久久久久久久 | 欧美一区二区免费 | www操操| 亚洲精品无 | 97av在线 | 欧美综合一区 | 久久久久国产一区二区三区 | 国产wwwcom |