fixed axios baseurl
This commit is contained in:
@@ -5,7 +5,7 @@ import axios from 'axios'
|
||||
// console.log('drupalSettings', drupalSettings);
|
||||
|
||||
export const REST = axios.create({
|
||||
baseURL: `http://dev.materio.com`,
|
||||
baseURL: window.location.origin,
|
||||
headers: {
|
||||
Authorization: 'Bearer {token}',
|
||||
"Content-Type": "application/json"
|
||||
|
Reference in New Issue
Block a user