Hi all, we recently wrapped our react code in a spring boot application deployed locally and now are unable to load WMS layer using a url to a publicly available WMS resource ("https://nowcoast.noaa.gov/arcgis/services/nowcoast/radar_meteo_imagery_nexrad_time/MapServer/WMSServer?request=GetCapabilities&service=WMS").
The error I'm getting in devtools looks like this:
: [esri.layers.WMSLayer] #load() Failed to load layer (title: 'Samples', id: '17c03f8411d-layer-2')
I don't think it is a CORS issue because I am able to see a successful GET request in my devtools containing the WMS data. I've also enabled cross origin requests in the application as well as enabled CORS using browser extension. The code the error originates from:
let wmsOptions = {
customParameters: message.params,
title: message.name || message.featureId,
url: url,
};
let wmsLayer = new WMSLayer(wmsOptions);
I confirmed wms layer loads successfully before transitioning to Spring.