View Full Version : Permission denied call for XMLHttpRequest.open
zafiro
28 Jun 2007, 10:51 AM
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
28 Jun 2007, 11:07 AM
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
28 Jun 2007, 11:10 AM
Wao, thaks. Knowing that would have saved me a lot of time yesterday. It should definitely be there.
efege
28 Jun 2007, 11:20 AM
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.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.