[問題] AJAX跨網域POST呼叫
各位前輩好
近日在評估ajax安全性問題
若整個頁面的新增、修改、刪除都用ajax來做
考量到程式碼外漏,可能會被人CSRF
故測了一下跨網域呼叫,之前爬文是說瀏覽器會擋不同網域
但測試結果Crome / Firefox 會擋
IE 8則出現「這網頁正在存取非其控制下的資訊....要繼續?」
按下「是」則呼叫成功
故認為瀏覽器並非一定可以擋XSS
若小弟在使用ajax時,想保護程式被解讀,是否有什麼方法呢?
還是說insert/delete本身就不適合使用ajax ??
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 60.249.154.130
→
05/22 13:01, , 1F
05/22 13:01, 1F
→
05/22 13:02, , 2F
05/22 13:02, 2F
→
05/22 13:20, , 3F
05/22 13:20, 3F
推
05/22 13:40, , 4F
05/22 13:40, 4F
→
05/22 13:40, , 5F
05/22 13:40, 5F
→
05/22 13:41, , 6F
05/22 13:41, 6F
→
05/22 13:41, , 7F
05/22 13:41, 7F
→
05/22 14:39, , 8F
05/22 14:39, 8F
→
05/22 14:40, , 9F
05/22 14:40, 9F
→
05/22 14:49, , 10F
05/22 14:49, 10F
→
05/22 14:51, , 11F
05/22 14:51, 11F
→
05/22 14:52, , 12F
05/22 14:52, 12F
推
05/22 14:59, , 13F
05/22 14:59, 13F
→
05/22 15:02, , 14F
05/22 15:02, 14F
推
05/22 17:37, , 15F
05/22 17:37, 15F
→
05/22 17:37, , 16F
05/22 17:37, 16F
→
05/22 17:39, , 17F
05/22 17:39, 17F
→
05/22 17:39, , 18F
05/22 17:39, 18F
→
05/22 17:39, , 19F
05/22 17:39, 19F
推
05/23 00:34, , 20F
05/23 00:34, 20F
→
05/23 00:37, , 21F
05/23 00:37, 21F
→
05/23 14:05, , 22F
05/23 14:05, 22F
→
05/23 14:06, , 23F
05/23 14:06, 23F
→
05/23 14:06, , 24F
05/23 14:06, 24F
→
05/24 09:26, , 25F
05/24 09:26, 25F
→
05/24 09:27, , 26F
05/24 09:27, 26F
→
05/24 09:27, , 27F
05/24 09:27, 27F
→
05/24 09:30, , 28F
05/24 09:30, 28F
→
05/24 09:37, , 29F
05/24 09:37, 29F
→
05/24 09:38, , 30F
05/24 09:38, 30F
→
05/24 09:39, , 31F
05/24 09:39, 31F
→
05/24 09:40, , 32F
05/24 09:40, 32F
→
05/24 09:43, , 33F
05/24 09:43, 33F
推
05/24 13:47, , 34F
05/24 13:47, 34F
→
05/24 14:49, , 35F
05/24 14:49, 35F
→
05/24 14:52, , 36F
05/24 14:52, 36F
→
05/24 14:53, , 37F
05/24 14:53, 37F
→
05/24 14:54, , 38F
05/24 14:54, 38F
→
05/24 14:55, , 39F
05/24 14:55, 39F
推
05/24 14:58, , 40F
05/24 14:58, 40F
→
05/24 14:59, , 41F
05/24 14:59, 41F
→
05/24 14:59, , 42F
05/24 14:59, 42F
推
05/29 08:34, , 43F
05/29 08:34, 43F
→
05/29 08:35, , 44F
05/29 08:35, 44F
→
05/29 08:36, , 45F
05/29 08:36, 45F
→
05/29 08:38, , 46F
05/29 08:38, 46F
→
05/29 08:39, , 47F
05/29 08:39, 47F
→
05/29 08:41, , 48F
05/29 08:41, 48F
推
05/29 15:44, , 49F
05/29 15:44, 49F
推
05/30 11:25, , 50F
05/30 11:25, 50F
→
05/30 11:26, , 51F
05/30 11:26, 51F
→
05/30 11:34, , 52F
05/30 11:34, 52F
→
05/30 11:35, , 53F
05/30 11:35, 53F
→
06/09 20:29, , 54F
06/09 20:29, 54F
Ajax 近期熱門文章
PTT數位生活區 即時熱門文章