# Terrain loading problem

**URL:** <https://community.cesium.com/t/terrain-loading-problem/1951>\
**Category:** CesiumJS\
**Created:** [February 3, 2015, 9:11pm UTC](https://community.cesium.com/t/terrain-loading-problem/1951 "2015-02-03T21:11:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adam.dunnage](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@adam.dunnage](https://community.cesium.com/u/adam.dunnage)\
**Post date:** [February 3, 2015, 9:11pm UTC](https://community.cesium.com/t/terrain-loading-problem/1951/1 "2015-02-03T21:11:31Z")

</div>

I use the Cesium terrain for my app and never had an issue with it but when trying to load it today I had these errors in my console.

XMLHttpRequest cannot load [http://cesium.agi.com/smallterrain/layer.json](http://cesium.agi.com/smallterrain/layer.json). No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '[http://localhost:8080](http://localhost:8080)' is therefore not allowed access.  
Cesium.js:94245 An error occurred in "CesiumTerrainProvider": An error occurred while accessing [http://cesium.agi.com/smallterrain/layer.json](http://cesium.agi.com/smallterrain/layer.json).

Does anyone know how to fix this? And where to do this?

Thanks

---

<div class="post-metadata">

**Author:** ![Kevin\_Ring](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/kevin_ring/32/2003_2.png) [@Kevin\_Ring](https://community.cesium.com/u/Kevin_Ring)\
**Post date:** [February 3, 2015, 9:30pm UTC](https://community.cesium.com/t/terrain-loading-problem/1951/2 "2015-02-03T21:30:15Z")

</div>

Hi,

You’re using a very old URL. You can find the correct one on this page:  
[http://cesiumjs.org/data-and-assets/terrain/small-terrain.html](http://cesiumjs.org/data-and-assets/terrain/small-terrain.html)

You may also want to consider using STK World Terrain, which is much higher quality:  
[http://cesiumjs.org/data-and-assets/terrain/stk-world-terrain.html](http://cesiumjs.org/data-and-assets/terrain/stk-world-terrain.html)

Kevin
