CORS errors for preventing feature layers from drawing in web scenes

05-04-2016 10:19 PM
New Contributor

Today I started seeing the following error in the console for my hosted feature layer in the scene viewer (as well as  JSAPI 4.0 apps running locally):

"Image from origin '' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '' is therefore not allowed access."

I suspect that is also the cause of another GraphicsLayerView3D error I see in the console:

"GraphicsLayerView3D.js:18 Uncaught TypeError: Cannot read property 'equals' of null"

I was able to view this same layer in this same web scene just yesterday.

0 Kudos
1 Reply
Esri Notable Contributor

Does the issue still take place if you clear your cache and reload?



0 Kudos