MasoniteFramework / masonite4

Temporary Repository for a Masonite Rewrite for Masonite 4
14 stars 3 forks source link

When crafting a project and starting we always get an InvalidCSRFToken exception #167

Closed girardinsamuel closed 3 years ago

girardinsamuel commented 3 years ago

It's quite annoying and not a good user experience especially for new comers..it's a bit worrying to already see an error after starting a brand new project.

Of course if we delete the cookies related to CSRF token in the browser the error's gone...

How to address this ?

There is no such a problem in Django

josephmancuso commented 3 years ago

Maybe when trying to decrypt a token, if we can't should we just delete the cookie?

girardinsamuel commented 3 years ago

Maybe that would be a solution yes !

josephmancuso commented 3 years ago

I changed this to just not decrypt the token if it can't so this should be solved now