diff options
Diffstat (limited to 'src/requests.ts')
-rw-r--r-- | src/requests.ts | 3 |
1 files changed, 1 insertions, 2 deletions
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'); |