Commit 01fe05d
committed
Allow overriding secure cookies for local development
CSRF and session cookies are configured to use the secure flag, i.e.
only send the cookies over HTTPS.
Chrome seems to ignore the secure flag when the origin is localhost,
which is why it hasn't been much of problem before now, but Safari
(correctly) does not set the cookie after login.
By making it an environment variable we can override for local
environments.1 parent a33763f commit 01fe05d
2 files changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
0 commit comments