File tree 3 files changed +4
-0
lines changed
3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -237,12 +237,14 @@ class App extends BaseConfig
237
237
| recommended CSRF protection be enabled.
238
238
|
239
239
| CSRFTokenName = The token name
240
+ | CSRFHeaderName = The header name
240
241
| CSRFCookieName = The cookie name
241
242
| CSRFExpire = The number in seconds the token should expire.
242
243
| CSRFRegenerate = Regenerate token on every submission
243
244
| CSRFRedirect = Redirect to previous page with error on failure
244
245
*/
245
246
public $ CSRFTokenName = 'csrf_test_name ' ;
247
+ public $ CSRFHeaderName = 'X-CSRF-TOKEN ' ;
246
248
public $ CSRFCookieName = 'csrf_cookie_name ' ;
247
249
public $ CSRFExpire = 7200 ;
248
250
public $ CSRFRegenerate = true ;
Original file line number Diff line number Diff line change 1
1
The MIT License (MIT)
2
2
3
3
Copyright (c) 2014-2019 British Columbia Institute of Technology
4
+ Copyright (c) 2019 CodeIgniter Foundation
4
5
5
6
Permission is hereby granted, free of charge, to any person obtaining a copy
6
7
of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ class MockAppConfig
16
16
17
17
public $ CSRFProtection = false ;
18
18
public $ CSRFTokenName = 'csrf_test_name ' ;
19
+ public $ CSRFHeaderName = 'X-CSRF-TOKEN ' ;
19
20
public $ CSRFCookieName = 'csrf_cookie_name ' ;
20
21
public $ CSRFExpire = 7200 ;
21
22
public $ CSRFRegenerate = true ;
You can’t perform that action at this time.
0 commit comments