Select to view content in your preferred language

Origin is not allowed by Access-Control-Allow-Origin.

2746
5
06-28-2013 09:53 AM
MaksimMazor1
Deactivated User
I am getting this error in my console when I run my WebApp. I think this may be the root cause behind some troubles I've been experiencing. Through some research I found this has to do with CORS. Does this mean I have to enable CORS for my WebApp or insert some code into my script? It runs fine in Chrome, and FireFox, but older version of IE are giving me trouble. Any input would be beneficial, thanks!
0 Kudos
5 Replies
MaksimMazor1
Deactivated User
I've implemented a zoom to a new extent functionality, for some reason it won't work in IE8. What could be the cause of that? Am I using a newer version of Dojo or the JSApi that isn't compatible?
0 Kudos
JianHuang
Deactivated User
Please put a proxy page in your code. If you are not sure when proxy page is needed, just put it there and it won't hurt anything. most cases, you will run into situations where proxy is required.
Your second question is not related to CORS.
0 Kudos
MaksimMazor1
Deactivated User
something like this?

esri.config.defaults.io.proxyURL = ("http://eddmapi-dev.usps.gov");
0 Kudos
JianHuang
Deactivated User
0 Kudos
MaksimMazor1
Deactivated User
Yea I've visited that site I guess it's just over my head.
0 Kudos