File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1954,6 +1954,7 @@ export class WebMap extends Observable {
1954
1954
url = layer . dataSource . url ,
1955
1955
dataSourceName = dataSource . dataSourceName || layer . name ;
1956
1956
let requestUrl = that . formatUrlWithCredential ( url ) , serviceOptions = { } ;
1957
+ serviceOptions . withCredentials = this . withCredentials ;
1957
1958
if ( ! this . excludePortalProxyUrl && ! CommonUtil . isInTheSameDomain ( requestUrl ) ) {
1958
1959
serviceOptions . proxy = this . getProxy ( ) ;
1959
1960
}
@@ -2049,7 +2050,7 @@ export class WebMap extends Observable {
2049
2050
try {
2050
2051
if ( dataSource . type === 'PORTAL_DATA' ) {
2051
2052
const { dataMetaInfo} = await FetchRequest . get ( `${ this . server } web/datas/${ dataSource . serverId } .json` , null , {
2052
- withCredentials : true
2053
+ withCredentials : this . withCredentials
2053
2054
} ) . then ( res => res . json ( ) ) ;
2054
2055
// eslint-disable-next-line require-atomic-updates
2055
2056
layerInfo . xyField = {
@@ -2435,6 +2436,7 @@ export class WebMap extends Observable {
2435
2436
that . addGeojsonFromUrl ( layerInfo , null , layerIndex )
2436
2437
} else {
2437
2438
let requestUrl = that . formatUrlWithCredential ( url ) , serviceOptions = { } ;
2439
+ serviceOptions . withCredentials = this . withCredentials ;
2438
2440
if ( ! this . excludePortalProxyUrl && ! CommonUtil . isInTheSameDomain ( requestUrl ) ) {
2439
2441
serviceOptions . proxy = this . getProxy ( ) ;
2440
2442
}
You can’t perform that action at this time.
0 commit comments