From 30df02ba39ecc54275316d3c2fda286d8f18e7dd Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Wed, 18 Sep 2019 11:38:12 +0200 Subject: [PATCH] change api url definition, using localhost and changing port needs CORS everywhere in firefox to work --- src/api/rest-axios.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/api/rest-axios.js b/src/api/rest-axios.js index b441bb2..5f3a5c8 100644 --- a/src/api/rest-axios.js +++ b/src/api/rest-axios.js @@ -1,7 +1,9 @@ import axios from 'axios' -// let path = 'http://' + window.location.hostname + ':8984' -let path = 'http://dev.api.gdp.fr' +// TODO: make this one as settings (or find an other solution) +let path = 'http://' + window.location.hostname + ':8984' +// let path = 'http://dev.api.gdp.fr' +// let path = 'http://localhost:8984' export const REST = axios.create({ baseURL: path + '/gdp',