Copernicus data integration via WMS service problem

Hi,

I'm trying to integrate some Copernicus open data in Cesium but my attempt failed so far.

This is the data I want to use : http://marine.copernicus.eu/web/69-myocean-interactive-catalogue.php?option=com_csw&view=details&product_id=GLOBAL_ANALYSIS_FORECAST_PHYS_001_002

See services for WMS access, here is the capabilities : http://atoll.mercator-ocean.fr/opendap-mercator-myocean/thredds/wms/global-analysis-forecast-phys-001-002?version=1.3.0&request=GetCapabilities&service=WMS

I'm not very accointed with WMS service, so I might do thing the wrong way, but here what looks like my code :

var viewer = new Cesium.Viewer('cesiumContainer');

// Add a WMS imagery layer
var imageryLayers = viewer.imageryLayers;
imageryLayers.addImageryProvider(new Cesium.WebMapServiceImageryProvider({
    url : ‘http://atoll.mercator-ocean.fr/opendap-mercator-myocean/thredds/wms/global-analysis-forecast-phys-001-002’,
    layers : ‘temperature’,
    parameters : {
        version : ‘1.3.0’,
        format : ‘image/png’,
        CRS : ‘EPSG:4326’
    }
}));

So here is what would look like one request :

http://atoll.mercator-ocean.fr/opendap-mercator-myocean/thredds/wms/global-analysis-forecast-phys-001-002?version=1.3.0&format=image%2Fpng&crs=EPSG%3A4326&service=WMS&request=GetMap&styles=&layers=temperature&srs=EPSG%3A4326&bbox=0%2C0%2C90%2C90&width=256&height=256

If you try it, you'll see the image corectly in your browser.

But Cesium does not want to load it.

The network developer tab of firefox indicate a '200 OK' response from these requests, but when I hover my mouse over it I have something that say "impossible to load the image", and no thumbnails.

Any hint why this is not working properly ?

Thanks

Olivier

CORS hits me again !

Problem solved

How did you solve it? Did you have to use a browser extension?

@Olivier_G-R

Do you know : https://github.com/Rob–W/cors-anywhere ?

@sergemorvan29 thanks for pointing this out!