12345678910111213141516 |
- import axios from 'axios'
- // https://github.com/alvar0hurtad0/drupal-vuejs-todo/blob/master/frontend/src/api/axiosInterceptor.js
- // console.log('drupalSettings', drupalSettings);
- console.log(window.location);
- export const JSONAPI = axios.create({
- baseURL: window.location.origin+`/jsonapi`,
- withCredentials: true,
- headers: {
- Accept: 'application/vnd.api+json'
- // Authorization: 'Basic {token}',
- // "Content-Type": "application/json"
- }
- })
|