aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/UploadImage/UploadImage.tsx2
-rw-r--r--src/requests.ts3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/components/UploadImage/UploadImage.tsx b/src/components/UploadImage/UploadImage.tsx
index d005830..f5e680d 100644
--- a/src/components/UploadImage/UploadImage.tsx
+++ b/src/components/UploadImage/UploadImage.tsx
@@ -6,7 +6,7 @@ import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
import DialogContentText from '@material-ui/core/DialogContentText';
import DialogTitle from '@material-ui/core/DialogTitle';
-import get from '../../../node_modules/axios';
+import get from 'axios';
interface PropTypes {
isOpen: boolean;
diff --git a/src/requests.ts b/src/requests.ts
index 0af80dc..b02329d 100644
--- a/src/requests.ts
+++ b/src/requests.ts
@@ -5,8 +5,7 @@ const baseURL = process.env.NODE_ENV === 'production'
? 'https://which-api.herokuapp.com'
: 'http://localhost:3030';
-const headers = ['Access-Control-Allow-Origin', '*'];
-const requests = axios.create({ baseURL, headers });
+const requests = axios.create({ baseURL });
requests.interceptors.request.use(config => {
const token = localStorage.getItem('token');