diff options
Diffstat (limited to 'src/requests.ts')
-rw-r--r-- | src/requests.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/requests.ts b/src/requests.ts index b02329d..0af80dc 100644 --- a/src/requests.ts +++ b/src/requests.ts @@ -5,7 +5,8 @@ const baseURL = process.env.NODE_ENV === 'production' ? 'https://which-api.herokuapp.com' : 'http://localhost:3030'; -const requests = axios.create({ baseURL }); +const headers = ['Access-Control-Allow-Origin', '*']; +const requests = axios.create({ baseURL, headers }); requests.interceptors.request.use(config => { const token = localStorage.getItem('token'); |