File tree Expand file tree Collapse file tree 4 files changed +4
-2
lines changed
Expand file tree Collapse file tree 4 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import {CesiumUtil} from "../Utils/CesiumUtil";
44import BasePlotPrimitive from "../Primitive/BasePlotPrimitive" ;
55import Point from "../../PlotUtilBase/Geometry/Point"
66import * as turf from "@turf/turf" ;
7+ axios . defaults . withCredentials = true ;
78
89/**
910 * @class module:3DPlot.EditTool
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import LogTool from "../../PlotUtilBase/Log/LogTool";
1111import SymbolCatalog from "./SymbolCatalog" ;
1212import { getAction } from "../Util/request" ;
1313import axios from "axios" ;
14+ axios . defaults . withCredentials = true ;
1415
1516export default class SymbolManager {
1617 constructor ( symbolsUrl , options ) {
@@ -77,8 +78,6 @@ export default class SymbolManager {
7778
7879 async getSymbols ( ) {
7980 if ( this . _symbols ) return this . _symbols ;
80-
81- debugger
8281 try {
8382 const res = await axios . get ( this . _symbolsUrl ) ;
8483 this . _symbols = new SymbolCatalog ( ) ;
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import { defined } from '../../PlotUtilBase/Check';
1212import LogTool from '../../PlotUtilBase/Log/LogTool' ;
1313import SymbolBase from './SymbolBase' ;
1414import axios from 'axios' ;
15+ axios . defaults . withCredentials = true ;
1516
1617export default class SymbolNode extends SymbolBase {
1718 constructor ( ) {
Original file line number Diff line number Diff line change 11import axios from "axios" ;
22import LogTool from "../../PlotUtilBase/Log/LogTool" ;
3+ axios . defaults . withCredentials = true ;
34
45const apiBaseUrl = "http://localhost:8082" ;
56
You can’t perform that action at this time.
0 commit comments