File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1636,7 +1636,7 @@ export class WebMap extends Observable {
1636
1636
getWmtsInfo ( layerInfo , callback ) {
1637
1637
let that = this ;
1638
1638
let options = {
1639
- withCredentials : that . isCredentail ( layerInfo . proxy ) ,
1639
+ withCredentials : that . isCredentail ( layerInfo . url , layerInfo . proxy ) ,
1640
1640
withoutFormatSuffix : true
1641
1641
} ;
1642
1642
const isKvp = ! layerInfo . requestEncoding || layerInfo . requestEncoding === 'KVP' ;
@@ -5248,7 +5248,7 @@ export class WebMap extends Observable {
5248
5248
if ( checkUrl && ! CommonUtil . isAbsoluteURL ( checkUrl ) ) {
5249
5249
checkUrl = CommonUtil . relative2absolute ( checkUrl , baseUrl ) ;
5250
5250
}
5251
- let withCredentials = this . isCredentail ( checkUrl , layerInfo . proxy ) ;
5251
+ const withCredentials = CommonUtil . isInTheSameDomain ( checkUrl ) || this . isIportalProxyServiceUrl ( checkUrl ) ;
5252
5252
const requestParameters = this . tileRequestParameters && this . tileRequestParameters ( checkUrl ) ;
5253
5253
// 创建MapBoxStyle样式
5254
5254
let mapboxStyles = new MapboxStyles ( {
You can’t perform that action at this time.
0 commit comments