Kasheftin / nuxt-auth-from-scratch

48 stars 19 forks source link

Token required on post #4

Open WeyIin opened 6 years ago

WeyIin commented 6 years ago

So I have created a post.vue page where I can submit text and title to the server. I am getting 500 response which indicates I am not providing token to the post request.

If I remove the need for a token on server side, I successfully post and create a new record in the db.

I have tried everything to submit with the header and auth token however now I am without the ideas of what to do in order to resolve this issue.

Any ideas / help please?

edit: This page is available only to already logged in users.

Thanks