Is there a way to access secured service through VectorTileLayer in ArcGIS JS API. I have tried with using methods - interceptor and CustomParameters - but nothing seems to work. Am I missing something?
1. Generated token
2. Tried to append token in interceptor and customparameters
// esriConfig.request.interceptors.push({
// urls: myBaseMapUrl,
// before: function(params) {
// params.requestOptions.query = params.requestOptions.query || {};
// params.requestOptions.query.token = this.accesstoken;
// }
// });
// My Basemap vector tile layer
const myBaseMapLayers = new VectorTileLayer({
url: (prd) ? myBaseMapUrl : oLBaseMapUrl,
customParameters: {
"token": this.accesstoken
}
});
My application always presents me with the credentials dialog box and I do not need it.
@ReneRubalcava
Thanks