AnsweredAssumed Answered

ArcGIS JS - Printing with private layers

Question asked by edparry13 on Jul 19, 2018

I have a map built using ArcGIS JS API v4.8. The map has a basemap and FeatureLayer that are both secured by a custom API and a server-side proxy.

I'm looking to make use of the Printing widget, but if I have the private FeatureLayer displayed, it fails to work, and if I switch that layer off it provides a print out but it doesn't show the custom basemap (so it's effectively just a blank page).

Is there a way to use the Printing widget even if layers/basemaps are not publically accessible? I presume the issue here is the PrintTaskUrl that's hosted by Esri can't access my private layers? Does anyone have any suggested workarounds for this at all?

Outcomes