View Full Version : Permission denied call for XMLHttpRequest.open
zafiro
06-28-2007, 01:51 PM
I've been trying to follow some of the examples from this site since yesterday (including the one at http://extjs.com/learn/Tutorial:Introduction_to_Ext). I managed to have them working on IE, but when using Firefox (in Windows and Linux), any attempt to contact a server broke with:
Error: [Exception... "'Permiso denegado para llamar el m
efege
06-28-2007, 02:07 PM
It's a security limitation of the XmlHttpRequest object: requests can only be made to the same domain as that of the page where the script is running. When you access your page using file:// instead of http:// you clearly have different domains.
I think this point should be mentioned in the tutorial...
zafiro
06-28-2007, 02:10 PM
Wao, thaks. Knowing that would have saved me a lot of time yesterday. It should definitely be there.
efege
06-28-2007, 02:20 PM
zafiro: note added (http://extjs.com/learn/Tutorial:Introduction_to_Ext#Using_Ajax); please check it and do/suggest any improvements if you wish.
I had noticed this problem a few days ago while reviewing the Spanish translation (http://extjs.com/learn/Tutorial:Introduction_to_Ext_%28Spanish%29#Usando_Ajax), and added a note there, but forgot to add it also to the original. Sorry.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.