# Issue in loading NASA's WMS Service

**URL:** <https://community.cesium.com/t/issue-in-loading-nasas-wms-service/9112>\
**Category:** CesiumJS\
**Created:** [March 3, 2020, 8:17am UTC](https://community.cesium.com/t/issue-in-loading-nasas-wms-service/9112 "2020-03-03T08:17:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![11119](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/11119/32/3476_2.png) [@11119](https://community.cesium.com/u/11119)\
**Post date:** [March 3, 2020, 8:17am UTC](https://community.cesium.com/t/issue-in-loading-nasas-wms-service/9112/1 "2020-03-03T08:17:18Z")

</div>

**1. A concise explanation of the problem you’re experiencing.**

 ![Nasa wms.PNG.jpg](https://global.discourse-cdn.com/cesium/original/1X/327fa0cac705f134666c7a7e9496f90de5eb3b6f.jpeg)

I am loading WMS Service from NASA Image Server. It’s not loading properly.

What is the error?. What I need to change ?.

**2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.**

var provider = new WebMapServiceImageryProvider({

url: “[http://svs.gsfc.nasa.gov/cgi-bin/wms](http://svs.gsfc.nasa.gov/cgi-bin/wms)”,

//?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=3487\_12773&FORMAT=image/png&WIDTH=1024&HEIGHT=512&CRS=CRS:84&BBOX=-180.0,-90.0,180.0,90.0&STYLES=

layers: ‘3487\_12773’,

proxy: new DefaultProxy(’/proxy/’),

parameters: {

version: ‘1.3.0’,

format: ‘image/png’,

width: 1024,

height: 512,

crs: ‘CRS:84’,

bbox: ‘-180.0,-90.0,180.0,90.0’

}

});

console.log(provider);

viewer.imageryLayers.addImageryProvider(provider);

Above is the code I am used. Here If I am not giving height, width, crs, bbox , It’s not ven loading like above scrrenshot.

**3. Context. Why do you need to do this? We might know a better way to accomplish your goal.**

**4. The Cesium version you’re using, your operating system and browser.**

Cesium1.66, Windows 10, Chrome

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [March 3, 2020, 12:36pm UTC](https://community.cesium.com/t/issue-in-loading-nasas-wms-service/9112/2 "2020-03-03T12:36:29Z")

</div>

Can you provide a Sandcastle example that produces that first image?

You can go here [https://sandcastle.cesium.com/](https://sandcastle.cesium.com/index.htm) and then create your example, and click “share” at the top and paste the link here.

---

<div class="post-metadata">

**Author:** ![11119](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/11119/32/3476_2.png) [@11119](https://community.cesium.com/u/11119)\
**Post date:** [March 3, 2020, 12:56pm UTC](https://community.cesium.com/t/issue-in-loading-nasas-wms-service/9112/3 "2020-03-03T12:56:02Z")

</div>

Hi Omar,

Find below sandcastle link:

> **[Cesium Sandcastle](https://sandcastle.cesium.com/#c=dVLtbtowFH2VKD8SKoFNgAmWEbaWpgUJRkcYrFKkySQmWHPsKDahbOq7z05gzZh2JUf2vefcr5wC5UZB8BHnhmcwfDTGWJBDCtalr2FH5XPMmUSE4dy++RCyQnGynBckvmZt8HaOsgDnBYnwNEUJzk9PZ2TjV8gMZYecukZo7qXMhAuhKARIxC4CDAkEEl7AKCGtLWHwmIrQbFYkCD8G/nI9HfveZh5Ya38ZTBefPQd0Qdta+l+++sHKe8RSVbdmt88q7HV7g/53p9Pvd62HxXJ+u/KIbghmLLE20/vVxHPanZ418aePk5X3zulYY8VSxx30rLu7xTev5QzaoN1svdff6q6vVrB6nvmBV3VG0QnnwjXst3r2uWm1o5eTW9/PPd6hA5VPOtCwYQmA9s0Fj3KUYlmmOy9LW6EchDNVohz3kl3bjucpkiryZ7R69EhiuXcNPWbNu8ck2SuOmrjmjcoZqunrObZb/qIC/1mFXQFfQ/aqhRFxJjjFgPKkcRGI9ivJlHICpJLErNwZQHF8rZE3ltk0h0KeKB5VNT6RNOO51PJpAAAlTjOKJBZwe4h+YAkiIXSpIbyQhjEpDBJ7oXml4dA0IoqEUJHdgdKA/MShORpChf+LRjmKCUsWav/qJ2vI3hnNKicAYAjV81+W5JxuUV7L+Bs)**
>
> The Cesium Sandcastle provides an interactive environment for testing Cesium code.

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [March 3, 2020, 1:01pm UTC](https://community.cesium.com/t/issue-in-loading-nasas-wms-service/9112/4 "2020-03-03T13:01:40Z")

</div>

I don’t see any imagery loading in that example. It appears that the server is returning CORS errors, which means it’s not configured to allow external requests.

Is there a web-page that describes this WMS resource and what license it’s available under etc?

---

<div class="post-metadata">

**Author:** ![11119](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/11119/32/3476_2.png) [@11119](https://community.cesium.com/u/11119)\
**Post date:** [March 3, 2020, 1:05pm UTC](https://community.cesium.com/t/issue-in-loading-nasas-wms-service/9112/5 "2020-03-03T13:05:21Z")

</div>

Hi Omar,

If you could not load (CORS Issue) in normal chrome browser, run in “disable web secrity”.

“[PATH\_TO\_CHROME]\chrome.exe” --disable-web-security --user-data-dir=~/chromeTemp

ref: [https://alfilatov.com/posts/run-chrome-without-cors/](https://alfilatov.com/posts/run-chrome-without-cors/)

 ![Nasa wms sandcastle.PNG.jpg](https://global.discourse-cdn.com/cesium/original/2X/6/6bc1cff89e718ace1a7c1e2db0910c965bd8438c.jpeg)
