8000 [bug] restjsr不出图 · SuperMap/iClient-JavaScript@dcf951c · GitHub
[go: up one dir, main page]

Skip to content

Commit dcf951c

Browse files
committed
[bug] restjsr不出图
1 parent debbf4a commit dcf951c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openlayers/mapping/WebMap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4859,7 +4859,7 @@ export class WebMap extends Observable {
48594859
if (checkUrl && !CommonUtil.isAbsoluteURL(checkUrl)) {
48604860
checkUrl = CommonUtil.relative2absolute(checkUrl, baseUrl);
48614861
}
4862-
let withCredentials = this.isCredentail(checkUrl, layerInfo.proxy);
4862+
let withCredentials = CommonUtil.isInTheSameDomain(checkUrl) || this.isIportalProxyServiceUrl(checkUrl);
48634863
// 创建MapBoxStyle样式
48644864
let mapboxStyles = new MapboxStyles({
48654865
baseUrl,

0 commit comments

Comments
 (0)
0