Missing credentails on featurelayer

12-08-2021 05:19 PM
Esri Contributor

I have a strange situation with the standard print widget that comes with webappbuilder 10.9.0. When it create the webmap as json, the op layer is missing the token. Digging into the code, the reason for that is because

https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html credential is missing for a secured layer.

The layer display and loads fine. Isloaded == true. So my question is any idea why credential would be missing?

Secondly any easy way to set credential ONLY for secured service or do I have to test if it is shared to everyone prior to setting the credential?

0 Kudos
1 Reply
Occasional Contributor


I have the same issue with Experience builder and JavaScript 4.x print widget. I raised a support ticket to ESRI . will update you once we find any solution for this. 

The workaround for you is: add an application proxy  and proxy rules for the secured layers in WAB application. 

0 Kudos