Skip to content

Commit cadc4ea

Browse files
committed
Release 4.0.0-rc.3
1 parent 03b5edb commit cadc4ea

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

app/Config/App.php

+2
Original file line numberDiff line numberDiff line change
@@ -237,12 +237,14 @@ class App extends BaseConfig
237237
| recommended CSRF protection be enabled.
238238
|
239239
| CSRFTokenName = The token name
240+
| CSRFHeaderName = The header name
240241
| CSRFCookieName = The cookie name
241242
| CSRFExpire = The number in seconds the token should expire.
242243
| CSRFRegenerate = Regenerate token on every submission
243244
| CSRFRedirect = Redirect to previous page with error on failure
244245
*/
245246
public $CSRFTokenName = 'csrf_test_name';
247+
public $CSRFHeaderName = 'X-CSRF-TOKEN';
246248
public $CSRFCookieName = 'csrf_cookie_name';
247249
public $CSRFExpire = 7200;
248250
public $CSRFRegenerate = true;

license.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
The MIT License (MIT)
22

33
Copyright (c) 2014-2019 British Columbia Institute of Technology
4+
Copyright (c) 2019 CodeIgniter Foundation
45

56
Permission is hereby granted, free of charge, to any person obtaining a copy
67
of this software and associated documentation files (the "Software"), to deal

tests/_support/Config/MockAppConfig.php

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class MockAppConfig
1616

1717
public $CSRFProtection = false;
1818
public $CSRFTokenName = 'csrf_test_name';
19+
public $CSRFHeaderName = 'X-CSRF-TOKEN';
1920
public $CSRFCookieName = 'csrf_cookie_name';
2021
public $CSRFExpire = 7200;
2122
public $CSRFRegenerate = true;

0 commit comments

Comments
 (0)