Back

csrfMetaTags()

Name Type Required Default Description
<head>
    <title>My Application</title>
    #csrfMetaTags()#
</head>

// This will output something like:
// <meta name="csrf-token" content="YOUR_AUTH_TOKEN_HERE">
// <meta name="csrf-param" content="authenticityToken">
Copied!