PROD removed all warning, exported variable new Vue, added Content-Security-Policy head's meta

This commit is contained in:
2021-03-31 19:17:55 +02:00
parent 3042f97b29
commit 7eefa39e10
4 changed files with 18 additions and 5 deletions

View File

@ -3,9 +3,10 @@ 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.origin', window.location.origin)
export const REST = axios.create({
baseURL: window.location.origin,
baseURL: '//' + window.location.host,
withCredentials: true,
headers: {
// Authorization: 'Bearer {token}',