The fact that it’s not appending the proxy seems like a bug. I haven’t had a chance to confirm it yet, and I don’t see any issue open for it (https://github.com/AnalyticalGraphicsInc/cesium) so that might be worth opening a bug report for.
In the mean time though, I noticed this WMS example just sticks the proxy part at the beginning of the URL:
Does that work if you do that?
The other thing to confirm this is a bug would be to open the network tab in your browser and see if you can confirm that it is indeed making a request without taking into account the specified proxy.
I did a little more digging, and it looks like the doc example is wrong, in that proxy is not an option on the WMS provider class. There’s still an issue because of a URL encoding, so I opened a bug report for it:
The only problem we’ve had with this is that some reverse proxies (I’m looking at you Apache) will replace the “https://” with “https:/” in the target URL (remove a slash) because the double slash is not technically allowed in a path. So our proxy just detects that and re-adds the removed slash.
You haven’t followed my suggestion; you’re still putting the target URL in a query parameter instead of in the path part of the URL. Given that you’re using a query parameter (proxyTo=), you can’t pre-proxy-ify the URL like that. It’s going to get mangled. WebMapServiceImageryProvider needs to be able to adjust query parameters, and it can’t do that when you’ve hidden the URL that needs to be adjusted inside a query parameter like that.
Thanks Kevin, I believe it is clear now. I asked the proxy providers to remove the query parameter (proxyTo=) from it, then I will attach the proxy in front of the target URL.