From 5ea22d3963c44fe38d55765906cc2b3bbd0d2aa7 Mon Sep 17 00:00:00 2001 From: Frencil Date: Tue, 28 Apr 2020 18:09:20 -0600 Subject: [PATCH] remove API token from CSV fetches --- lib/components/TimeSeriesViewer/TimeSeriesViewerContext.js | 3 +-- .../components/TimeSeriesViewer/TimeSeriesViewerContext.jsx | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/components/TimeSeriesViewer/TimeSeriesViewerContext.js b/lib/components/TimeSeriesViewer/TimeSeriesViewerContext.js index 786ca174..f0da424b 100644 --- a/lib/components/TimeSeriesViewer/TimeSeriesViewerContext.js +++ b/lib/components/TimeSeriesViewer/TimeSeriesViewerContext.js @@ -315,8 +315,7 @@ var fetchCSV = function fetchCSV(url) { method: 'GET', crossDomain: true, responseType: 'text', - url: url, - headers: _NeonApi.default.getApiTokenHeader() + url: url }); }; diff --git a/src/lib_components/components/TimeSeriesViewer/TimeSeriesViewerContext.jsx b/src/lib_components/components/TimeSeriesViewer/TimeSeriesViewerContext.jsx index 04b0f60d..66dc051a 100644 --- a/src/lib_components/components/TimeSeriesViewer/TimeSeriesViewerContext.jsx +++ b/src/lib_components/components/TimeSeriesViewer/TimeSeriesViewerContext.jsx @@ -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');