diff --git a/build/webpack.config.dev.js b/build/webpack.config.dev.js index 283cbc1..4e91740 100644 --- a/build/webpack.config.dev.js +++ b/build/webpack.config.dev.js @@ -14,9 +14,10 @@ module.exports = merge(baseConfig, { hot: true, contentBase: 'dist', compress: true, + // host: 'dev.gdp.fr', host: '0.0.0.0', port: PORT, - // disableHostCheck: true, + disableHostCheck: true, // open: "firefox-developer-edition", overlay: { warnings: false, errors: true }, publicPath: '/', diff --git a/src/api/rest-axios.js b/src/api/rest-axios.js index 2bc5885..12d2dce 100644 --- a/src/api/rest-axios.js +++ b/src/api/rest-axios.js @@ -1,12 +1,14 @@ import axios from 'axios' -let path = 'http://' + window.location.hostname + ':8984' +// let path = 'http://' + window.location.hostname + ':8984' +let path = 'http://dev.api.gdp.fr' export const REST = axios.create({ baseURL: path + '/gdp', - withCredentials: true, - crossDomain: true, + // withCredentials: true, + crossorigin: true, headers: { 'Content-Type': 'application/json' + // 'Access-Control-Allow-Credentials': true } }) diff --git a/src/pages/Bibliographie.vue b/src/pages/Bibliographie.vue index b690dc2..36817fa 100644 --- a/src/pages/Bibliographie.vue +++ b/src/pages/Bibliographie.vue @@ -6,12 +6,36 @@