Community
All Communities
Products
ArcGIS Pro
ArcGIS Survey123
ArcGIS Online
ArcGIS Enterprise
Data Management
ArcGIS Experience Builder
Geoprocessing
ArcGIS Web AppBuilder
ArcGIS Dashboards
ArcGIS Field Maps
ArcGIS StoryMaps
All Products Communities
Industries
Education
Water Resources
State & Local Government
Transportation
Gas and Pipeline
Water Utilities
Roads and Highways
Telecommunications
Natural Resources
Electric
Imagery and Remote Sensing Insights (IRIS) COP
All Industries Communities
Developers
Python
JavaScript Maps SDK
Native Maps SDKs
ArcGIS API for Python
ArcGIS Pro SDK
ArcObjects SDK
Developers - General
ArcGIS REST APIs and Services
ArcGIS Online Developers
Game Engine Maps SDKs
File Geodatabase API
All Developers Communities
Global
Comunidad Esri Colombia - Ecuador - Panamá
ArcGIS 開発者コミュニティ
Czech GIS
ArcNesia
Europe
Esri India
Americas
Asia Pacific
Comunidad GEOTEC
GeoDev Germany
ArcGIS Content - Esri Nederland
All Global Communities
All Communities
Developers
User Groups
Industries
Services
Community Resources
Global
Events
Learning
Networks
ArcGIS Topics
Products
View All Communities
ArcGIS Ideas
GIS Life
Community Resources
Community Help Documents
Community Blog
Community Feedback
Member Introductions
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
Select to view content in your preferred language
Translate Now
Access-Control-Allow-Origin and 3.0
Subscribe
5635
4
06-19-2012 08:19 PM
by
JohnCartwright
Deactivated User
06-19-2012
08:19 PM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
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
Deactivated User
06-19-2012
09:54 PM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
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
Deactivated User
06-20-2012
08:04 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
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
Deactivated User
06-20-2012
08:39 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
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
Regular Contributor
03-04-2013
06:30 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
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