SCRIPT5: Access is denied in IE9 on xmlhttprequest

后端 未结 11 1944
太阳男子
太阳男子 2020-11-28 07:42
var xhttp=new XMLHttpRequest();
xhttp.open(\'GET\', \'foo.xml\', false);

F12 pops back: SCRIPT5: Access is denied. on Line 95, which is

11条回答
  •  猫巷女王i
    2020-11-28 08:39

    On IE7, IE8, and IE9 just go to Settings->Internet Options->Security->Custom Level and change security settings under "Miscellaneous" set "Access data sources across domains" to Enable.

提交回复
热议问题