Masonite Inertia
4.X
4.X
  • Introduction
  • Installation
  • Demo app
  • The basics
    • Routing
    • Responses
    • Redirects
    • Validation
    • Shared data
    • File uploads
  • Advanced
    • Configuration
    • Root view
    • Partial reloads
    • Authorization
    • CSRF protection
    • Error handling
    • Assets versioning
    • Server-side rendering
    • Testing
  • Development
    • Changelog
    • Contribute
    • Support
Powered by GitBook
On this page
  • CSRF Token
  • Handling mismatches

Was this helpful?

  1. Advanced

CSRF protection

CSRF Token

The adapter will include a XSRF-TOKEN cookie on each response with the value of Masonite generated CSRF Token. Client requests made with axios through inertia frontend adapters will include X-XSRF-TOKEN header.

Thanks to VerifyCSRFToken middleware, Masonite will verify the presence of the CSRF Token in the header allowing CSRF verification.

Handling mismatches

Coming soon.

PreviousAuthorizationNextError handling

Last updated 3 years ago

Was this helpful?