[請益] jquery的ajax 如何連向絕對網址

看板Web_Design作者 (艾瑞克)時間17年前 (2008/09/16 05:24), 編輯推噓1(106)
留言7則, 4人參與, 最新討論串1/1
請益各位先進: $(document).ready(function() { $.ajax({ type: "POST", url: "https://www.esafe.com.tw/ASP3/etopm.asp", success: function(msg){ alert( "Data Saved: " + msg ); } }); }); 會出現 Access to restricted URI denied" code: "1012 [Break on this error] xhr.open(type, s.url, s.async); 把網址改成本機的檔案的時候,就OK 是我哪一個步驟錯了嗎?? -- Best Regards, Arrack Tseng -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.64.102.253

09/16 05:57, , 1F
Ajax為了安全性而限制只能同網域內呼叫
09/16 05:57, 1F

09/16 06:25, , 2F
無解嗎?
09/16 06:25, 2F

09/16 07:13, , 3F
esafe .. 保重!
09/16 07:13, 3F

09/16 09:09, , 4F
jQuery的JSONP可能可以cross-domain的post
09/16 09:09, 4F

09/16 09:09, , 5F
不過,看來你是要串金流...建議還是用該廠商的規格囉
09/16 09:09, 5F

09/16 16:20, , 6F
你可能得check一下manual,跳到那個網址之後,還要輸入信用卡等
09/16 16:20, 6F

09/16 16:21, , 7F
資料,等一大堆流程過後,才會有傳回值.
09/16 16:21, 7F
文章代碼(AID): #18pjA0wy (Web_Design)