PANDIYAN Posted October 16, 2012 Share Posted October 16, 2012 Hi All, we have get some xml value in thirdparty website using ajax xml/http(php) request. when running the page in local (ie, Apache installed system) its working fine. When accessing the page other than local, apache not allowing to execute ajax accessing the 3rd party website. it's "Permission Denied" Error alert is displayed in browser.what i do further. Please let me know any possible way... Thanks, Pandiyan N Quote Link to comment https://forums.phpfreaks.com/topic/269531-how-to-avoid-permission-denied-error-in-browser-using-xmlhttpphp-request/ Share on other sites More sharing options...
ManiacDan Posted October 16, 2012 Share Posted October 16, 2012 (edited) It has nothing to do with apache, you can't do cross-domain AJAX requests, that's just the rule. You can make a script on your own server which acts as a pass-through for the third-party XML. There are other ways to get around this issue, google around for cross-domain ajax for a solution if you don't want to simply make a page on your server. Edited October 16, 2012 by ManiacDan Quote Link to comment https://forums.phpfreaks.com/topic/269531-how-to-avoid-permission-denied-error-in-browser-using-xmlhttpphp-request/#findComment-1385531 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.