I am working a customized widget usingWeb Appbuilder developer edition 2.14. One part of the code is to load a WMS map service to the map. I am able to load the WMS service in development environment. After I download the site and deploy it in an IIS server, the WMS map is not loaded to the map. Google Chrome developer tool shows the layer is added and no error at the console tab. If I put the same piece of codes to a standalone html page in an IIS server. It also works. Any help is appreciated.
Thelines of code to load WMS service is below-