Community
All Communities
Products
ArcGIS Pro
ArcGIS Survey123
ArcGIS Online
ArcGIS Enterprise
Data Management
Geoprocessing
ArcGIS Web AppBuilder
ArcGIS Experience Builder
ArcGIS Dashboards
ArcGIS CityEngine
ArcGIS Spatial Analyst
All Products Communities
Industries
Education
Water Resources
State & Local Government
Transportation
Gas and Pipeline
Water Utilities
Roads and Highways
Telecommunications
Natural Resources
Electric
Public Safety
All Industries Communities
Developers
Python
JavaScript Maps SDK
Native Maps SDKs
ArcGIS API for Python
ArcObjects SDK
ArcGIS Pro SDK
Developers - General
ArcGIS REST APIs and Services
ArcGIS Online Developers
File Geodatabase API
Game Engine Maps SDKs
All Developers Communities
Worldwide
Comunidad Esri Colombia - Ecuador - Panamá
ArcGIS 開発者コミュニティ
Czech GIS
ArcNesia
Esri India
GeoDev Germany
ArcGIS Content - Esri Nederland
Esri Italia Community
Comunidad GEOTEC
Esri Ireland
Používatelia ArcGIS
All Worldwide Communities
All Communities
Products
Developers
User Groups
Industries
Services
Community Resources
Worldwide
Events
Learning
ArcGIS Topics
Networks
View All Communities
ArcGIS Ideas
GIS Life
Community Resources
Community Help Documents
Community Blog
Community Feedback
Member Introductions
Community Ideas
All Community Resources
Sign In
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show
only
|
Search instead for
Did you mean:
Cancel
Home
:
All Communities
:
Developers
:
JavaScript Maps SDK
:
JavaScript Maps SDK Questions
:
Access-Control-Allow-Origin and 3.0
Options
Subscribe to RSS Feed
Mark Topic as New
Mark Topic as Read
Float this Topic for Current User
Bookmark
Subscribe
Mute
Printer Friendly Page
Access-Control-Allow-Origin and 3.0
Subscribe
5195
4
06-19-2012 08:19 PM
by
JohnCartwright
Occasional Contributor
06-19-2012
08:19 PM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
Hello All,
I'm finding that when using 3.0, I get the following error:
XMLHttpRequest cannot load
http://server.arcgisonline.com/ArcGIS/rest/info?f=json
. Origin
http://localhost
is not allowed by Access-Control-Allow-Origin.
Simply switching the API back to 2.8 eliminates the problem. I've tried configuring both CORS and the proxyUrl, but neither helps.
Can someone please provide me some guidance here?
Thanks!
--john
Tags
(2)
Tags:
javascript
web_developers
Reply
0
Kudos
All Posts
Previous Topic
Next Topic
4 Replies
by
derekswingley1
Frequent Contributor
06-19-2012
09:54 PM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
Hi John,
You can safely ignore these errors. There's info about this in the doc for
esri.request
(specifically, the bullet for 3.0).
Kelly also posted about this a couple of days ago:
http://forums.arcgis.com/threads/59988-Issue-Upgrading-to-version-3.0?p=207055&viewfull=1#post207055
Reply
0
Kudos
by
JohnCartwright
Occasional Contributor
06-20-2012
08:04 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
Thanks Derek, I had not seen Kelly's message on this topic. I'm surprised though that
http://enable-cors.org/
reports that sservices.arcgisonline.com is a CORS-enabled site.
--john
Reply
0
Kudos
by
derekswingley1
Frequent Contributor
06-20-2012
08:39 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
Glad to help.
Attached is what I see when I used enable-cors.org to check if CORS is supported on services.arcgisonline.com. That server is not set up for CORS.
Preview file
82 KB
Reply
0
Kudos
by
AaronConnolly
Occasional Contributor
03-04-2013
06:30 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
Ignoring this warning doesn't work if you call a buffer task:
http://forums.arcgis.com/threads/78905-GeometryServic-Buffer-Task-amp-Access-Control-Allow-Origin?p=...
Why would this happen with a geometry service? I'm running API version 3.2.
Reply
0
Kudos
Post Reply