trying to get json from api
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user