rest-axios.js 341 B

1234567891011121314
  1. import axios from 'axios'
  2. // let path = 'http://' + window.location.hostname + ':8984'
  3. let path = 'http://dev.api.gdp.fr'
  4. export const REST = axios.create({
  5. baseURL: path + '/gdp',
  6. // withCredentials: true,
  7. crossorigin: true,
  8. headers: {
  9. 'Content-Type': 'application/json'
  10. // 'Access-Control-Allow-Credentials': true
  11. }
  12. })