diff options
| author | xXx-caillou-xXx | 2017-12-18 16:27:00 +0100 |
|---|---|---|
| committer | jvoisin | 2017-12-18 16:27:00 +0100 |
| commit | f70bd2eafc2fdac9fa528a3e649db0178c601b41 (patch) | |
| tree | 5bde4b106b3e24a49bdb061c9eca2ecfe68b9bbc /src/tests/config | |
| parent | 75f876fca7587218fdbad9bd10bbe52825591ccc (diff) | |
Fix cookie encryption
Previously, when a cookie was set with the `httpOnly` flag, it was automatically encrypted, due to a logic flaw. This is now fixed and tested.
Diffstat (limited to 'src/tests/config')
| -rw-r--r-- | src/tests/config/config_samesite_cookies.ini | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/config/config_samesite_cookies.ini b/src/tests/config/config_samesite_cookies.ini index 9fb5f25..1ca498a 100644 --- a/src/tests/config/config_samesite_cookies.ini +++ b/src/tests/config/config_samesite_cookies.ini | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | sp.global.secret_key("abcdef").cookie_env_var("REMOTE_ADDR"); | 1 | sp.global.secret_key("abcdef").cookie_env_var("REMOTE_ADDR"); |
| 2 | sp.cookie.name("super_cookie").samesite("Lax"); | 2 | sp.cookie.name("super_cookie").samesite("Lax"); |
| 3 | sp.cookie.name("awful_cookie").samesite("strict").encrypt(); | 3 | sp.cookie.name("awful_cookie").samesite("strict").encrypt(); |
| 4 | sp.cookie.name("nice_cookie").samesite("STRICT"); | 4 | sp.cookie.name("nice_cookie").samesite("STRICT").encrypt(); |
| 5 | sp.auto_cookie_secure.enable(); | 5 | sp.auto_cookie_secure.enable(); |
