# on iPad only our Cesium says "Authentication Required assets.agi.com"

**URL:** <https://community.cesium.com/t/on-ipad-only-our-cesium-says-authentication-required-assets-agi-com/2712>\
**Category:** CesiumJS\
**Created:** [June 30, 2015, 6:00pm UTC](https://community.cesium.com/t/on-ipad-only-our-cesium-says-authentication-required-assets-agi-com/2712 "2015-06-30T18:00:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tani\_Shavit](https://avatars.discourse-cdn.com/v4/letter/t/a4c791/32.png) [@Tani\_Shavit](https://community.cesium.com/u/Tani_Shavit)\
**Post date:** [June 30, 2015, 6:00pm UTC](https://community.cesium.com/t/on-ipad-only-our-cesium-says-authentication-required-assets-agi-com/2712/1 "2015-06-30T18:00:03Z")

</div>

Our Cesium app runs well on Mac and other desktops, but on iPad we get a popup  
"Authentication Required" from [assets.agi.com](http://assets.agi.com). What's the cause and how to fix it? thanks

---

<div class="post-metadata">

**Author:** ![Matt\_Amato](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/matt_amato/32/1993_2.png) [@Matt\_Amato](https://community.cesium.com/u/Matt_Amato)\
**Post date:** [June 30, 2015, 7:45pm UTC](https://community.cesium.com/t/on-ipad-only-our-cesium-says-authentication-required-assets-agi-com/2712/2 "2015-06-30T19:45:25Z")

</div>

Does the standard Cesium terrain demo work? [http://cesiumjs.org/Cesium/Apps/Sandcastle/gallery/Terrain.html](http://cesiumjs.org/Cesium/Apps/Sandcastle/gallery/Terrain.html)

Can you share the code you are using to connect to the terrain server?

---

<div class="post-metadata">

**Author:** ![Tani\_Shavit](https://avatars.discourse-cdn.com/v4/letter/t/a4c791/32.png) [@Tani\_Shavit](https://community.cesium.com/u/Tani_Shavit)\
**Post date:** [June 30, 2015, 10:16pm UTC](https://community.cesium.com/t/on-ipad-only-our-cesium-says-authentication-required-assets-agi-com/2712/3 "2015-06-30T22:16:09Z")

</div>

Yes the demo works…

Will follow up tomorrow regarding our code, thank for now

---

<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:** [June 30, 2015, 11:42pm UTC](https://community.cesium.com/t/on-ipad-only-our-cesium-says-authentication-required-assets-agi-com/2712/4 "2015-06-30T23:42:32Z")

</div>

I’ve seen this as well, on all versions of Safari (including on OS X). It only happens if you’re using the old terrain URL on [cesiumjs.org](http://cesiumjs.org), not if you use [assets.agi.com](http://assets.agi.com).

What happens is this: Safari does a GET request for a tile from [cesiumjs.org](http://cesiumjs.org) and gets back a 301, as expected. Now instead of then doing a GET to the new URL like every other browser, Safari instead does an OPTIONS request. Why? I can’t imagine. But this triggers an auth dialog because STK Terrain Server is configured to require auth for all requests other than GET.

So, you can fix this in your app by updating to the non-deprecated URL. AGI can also fix it by configuring the terrain web server to allow anonymous GET requests.

Kevin

---

<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:** [June 30, 2015, 11:43pm UTC](https://community.cesium.com/t/on-ipad-only-our-cesium-says-authentication-required-assets-agi-com/2712/5 "2015-06-30T23:43:28Z")

</div>

Sorry, that last sentence should say “anonymous OPTIONS requests.”

---

<div class="post-metadata">

**Author:** ![Matt\_Amato](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/matt_amato/32/1993_2.png) [@Matt\_Amato](https://community.cesium.com/u/Matt_Amato)\
**Post date:** [July 2, 2015, 1:06am UTC](https://community.cesium.com/t/on-ipad-only-our-cesium-says-authentication-required-assets-agi-com/2712/6 "2015-07-02T01:06:05Z")

</div>

Thanks for the breakdown, Kevin. I’ll see about getting Alex to look into this on the server side, I’m sure someone else will run into it again in the future.

---

<div class="post-metadata">

**Author:** ![Tani\_Shavit](https://avatars.discourse-cdn.com/v4/letter/t/a4c791/32.png) [@Tani\_Shavit](https://community.cesium.com/u/Tani_Shavit)\
**Post date:** [July 2, 2015, 4:38am UTC](https://community.cesium.com/t/on-ipad-only-our-cesium-says-authentication-required-assets-agi-com/2712/7 "2015-07-02T04:38:07Z")

</div>

Problem fixed. Thanks, Kevin.
