tag:blogger.com,1999:blog-62738186848314543062024-03-18T11:48:25.542+02:00cat **/*Akshaalhttp://www.blogger.com/profile/05677582369584740657noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-6273818684831454306.post-45574568194997325712009-03-05T18:35:00.005+02:002009-03-05T18:50:16.141+02:00Cross-site requestIt is handy to test javascript snippets without uploading them on a production server. But it is hard to test AJAX request like that. The reason for it is that firefox doesn't allow a cross-site request for a sake of user's security.<pre>uncaught exception: Access to restricted URI denied (NS_ERROR_DOM_BAD_URI)</pre>But if you know what you are doing you can temporarley switch this behavior off. Open <b>about:config</b> page and set <b>signed.applets.codebase_principal_support</b> to <b>true</b>. Also your script must have the following line executed before any cross-site request:<pre>netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");</pre><ad2></ad2>And don't forget to set <b>signed.applets.codebase_principal_support</b> to <b>false</b> value back and remove the line above from script when you have done with testing!!Akshaalhttp://www.blogger.com/profile/05677582369584740657noreply@blogger.com3