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

342
2
11-07-2013 07:37 PM
JosephineREgina
New Contributor
I'm using  https://server.arcgisonline.com rest service in an application.But it shows the below error in the console.
XMLHttpRequest cannot load https://server.arcgisonline.com/ArcGIS/rest/info?f=json. Origin http://localhost:8080 is not allowed by A
ccess-Control-Allow-Origin.
I read various post but couldn't find a solution.
Can you provide a solution to fix this error?
0 Kudos
2 Replies
JeffPace
MVP Alum
the solution is to ignore it, or upgrade to CORS compatible servers
0 Kudos
derekswingley1
Frequent Contributor
0 Kudos