chore: update test

master
pooya parsa 2019-03-18 23:41:05 +03:30
parent d21aca4432
commit 0211114c22
2 changed files with 4 additions and 4 deletions

View File

@ -11,12 +11,12 @@ module.exports = {
{ handler: require('../../') }
],
serverMiddleware: ['~/api.js'],
axios: {
http: {
prefix: '/test_api',
proxy: true,
credentials: true,
debug: true,
retry: true
},
plugins: ['~/plugins/axios']
plugins: ['~/plugins/http']
}

View File

@ -1,8 +1,8 @@
export default function ({ $http, redirect }) {
$http.setHeader('xsrfHeaderName', 'X-CSRF-TOKEN')
$http.onRequest((config) => {
// eslint-disable-next-line no-console
console.log('SPY: ' + config.url)
$http.defaults.xsrfHeaderName = 'X-CSRF-TOKEN'
})
}