var provider = new Cesium.WebMapServiceImageryProvider({
url : 'https://sampleserver1.arcgisonline.com/ArcGIS/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/WMSServer',
layers : '0',
proxy: new Cesium.DefaultProxy('/proxy/')
});
viewer.imageryLayers.addImageryProvider(provider);
However, it doesn’t look like the proxy object ever gets set anywhere. Was proxy taken out of the Resource (below) or am I just doing something wrong? We are on Cesium 1.58. Thanks!
I should have read the changelogs. Answering my own question...I needed to do this:
var myResource = new Cesium.Resource( {"url":layerUrl, "proxy":new Cesium.DefaultProxy('/proxy')} );
var provider = new Cesium.WebMapServiceImageryProvider({ "url" : myResource, "layers" : '0' });