#CSRF TOKEN MISMATCH - NEXTJS X SANCTUM BREEZE API

11 messages · Page 1 of 1 (latest)

ruby kettle
#

I'm having the error 419 been setting up the .env entirely tried to reverse engineer this CSRF to completely turn it off but does not work.

toxic patio
#

you're probabely using web.php routes, there is a middleware group on it that includes csrf protection.

#

use api.php

#

or you can explain more of what you're doing and what you want to accomplish.

formal moat
#

Why do you want to disable CSRF?

ornate fulcrum
#

Yeah, disabling CSRF on a nextjs app sounds like a horrible idea, csrf is there for a reason.

ruby kettle
ornate fulcrum
ruby kettle
#

Yea I don't need a handshake just so I can authenticate

#

It's local only

ornate fulcrum
#

It's not a handshake tho, it's protection against a known exploitable thing. Like, you're then explicitly disabling security features, but you do you