Thursday, 4 September 2014

Permission denied - javascript prompt

In development environment when trying to make ajax call using the ActiveX object post request was getting following error

Permission denied.


Resolution

Add the website the request is made to trusted site along with the one the site is making the request.

if the dialog is disabled due to enforced policies, use the following register key and delete it and then reopen the browser, this will let you add site to trusted area


HKLM\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings

Reduce the trust security to low

(before making any change to register please take a backup, and to reduce the trusted security level you should know the implication).

This is not in any shape the desired solution and should be avoided if possible.

No comments:

Post a Comment