We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7be9472 commit a5da338Copy full SHA for a5da338
1 file changed
app/Config/App.php
@@ -237,12 +237,14 @@ class App extends BaseConfig
237
| recommended CSRF protection be enabled.
238
|
239
| CSRFTokenName = The token name
240
+ | CSRFHeaderName = The header name
241
| CSRFCookieName = The cookie name
242
| CSRFExpire = The number in seconds the token should expire.
243
| CSRFRegenerate = Regenerate token on every submission
244
| CSRFRedirect = Redirect to previous page with error on failure
245
*/
246
public $CSRFTokenName = 'csrf_test_name';
247
+ public $CSRFHeaderName = 'X-CSRF-TOKEN';
248
public $CSRFCookieName = 'csrf_cookie_name';
249
public $CSRFExpire = 7200;
250
public $CSRFRegenerate = true;
0 commit comments