Skip to content

Commit

Permalink
remove API token from CSV fetches
Browse files Browse the repository at this point in the history
  • Loading branch information
Frencil committed Apr 29, 2020
1 parent 1dc1701 commit 5ea22d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions lib/components/TimeSeriesViewer/TimeSeriesViewerContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,7 @@ var fetchCSV = function fetchCSV(url) {
method: 'GET',
crossDomain: true,
responseType: 'text',
url: url,
headers: _NeonApi.default.getApiTokenHeader()
url: url
});
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ const fetchCSV = url => ajax({
crossDomain: true,
responseType: 'text',
url,
headers: NeonApi.getApiTokenHeader(),
});
const parseCSV = (rawCsv, dedupeLines = false) => {
const csv = !dedupeLines ? rawCsv : [...new Set(rawCsv.split('\n'))].join('\n');
Expand Down

0 comments on commit 5ea22d3

Please sign in to comment.