Skip to content

Commit 5ea22d3

Browse files
committed
remove API token from CSV fetches
1 parent 1dc1701 commit 5ea22d3

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lib/components/TimeSeriesViewer/TimeSeriesViewerContext.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,7 @@ var fetchCSV = function fetchCSV(url) {
315315
method: 'GET',
316316
crossDomain: true,
317317
responseType: 'text',
318-
url: url,
319-
headers: _NeonApi.default.getApiTokenHeader()
318+
url: url
320319
});
321320
};
322321

src/lib_components/components/TimeSeriesViewer/TimeSeriesViewerContext.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ const fetchCSV = url => ajax({
203203
crossDomain: true,
204204
responseType: 'text',
205205
url,
206-
headers: NeonApi.getApiTokenHeader(),
207206
});
208207
const parseCSV = (rawCsv, dedupeLines = false) => {
209208
const csv = !dedupeLines ? rawCsv : [...new Set(rawCsv.split('\n'))].join('\n');

0 commit comments

Comments
 (0)