(Not Signed In)

Sign In

Resources

Why do I get a "access denied" message on a client side using JavaScript?

Issue:
You get an 'Access Denied' JavaScript error when trying to run geocoding inside an application and geocoding calls a GeoStream server.


Cause:
The JavaScript proxy is not set and so the application attempts to perform cross site scripting (with the GeoStream server running on a different machine to the application), therefore the application can not call the GeoStream server directly.
 

Solution:
Copy the proxy.aspx file and replace:

"FRAMEWORK_SETTINGS = {…};


to:

FRAMEWORK_SETTINGS = {"framework.path": {"*": ""}, "telogis.geobase.serviceUrl": "proxy.aspx?url≤url_of_your_geostream_server>"};

 

Published, May 18th 2009, 15:54

<< Why do I get "HTTP error 401.3: Unauthorized due to ACL on resource"? | Why do I get "Unauthorized Access Exception in CacheWatcher" message? >>