adonisjs / core

AdonisJS is a TypeScript-first web framework for building web apps and API servers. It comes with support for testing, modern tooling, an ecosystem of official packages, and more.
https://adonisjs.com
MIT License
16.95k stars 637 forks source link

CSFR-TOKEN not working Adonis 4 (dawn) #653

Closed stecapra closed 7 years ago

stecapra commented 7 years ago

Using : -adonis 4 (dawn) -axios -vuejs

If i send an AJAX request like that:

axios.post('/API')
.then(function () {
  console.log('done')
})

it returns 403 error, while using the same code in adonis 3.2 it works. I'm using vuejs front-end. Check also the headers in the request, and 'x-xsrf-token' is sent correctly.

thetutlage commented 7 years ago

Everything works fine for me. Checkout this repo https://github.com/thetutlage/framework-653

thetutlage commented 7 years ago

Already fixed on @adonisjs/shield repo

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.