diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-09-27 15:36:56 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-09-27 15:36:56 -0400 |
| commit | 80af9cfb858dd18bc1cf26ce213aecd52bd8fc7b (patch) | |
| tree | d9f629de888bb825e043cc65b0a15890fa18ef6d /src/login | |
| parent | 45b5ff6a9aea2709e0e5568636105ccefbb7e66f (diff) | |
Browsers default Path= to the directory part of the request URI.
This change makes the identity cookie available throughout `/api`.
Diffstat (limited to 'src/login')
| -rw-r--r-- | src/login/extract.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/login/extract.rs b/src/login/extract.rs index 542f879..5ef454c 100644 --- a/src/login/extract.rs +++ b/src/login/extract.rs @@ -35,6 +35,7 @@ impl IdentityToken { pub fn set(self, secret: &str) -> Self { let identity_cookie = Cookie::build((IDENTITY_COOKIE, String::from(secret))) .http_only(true) + .path("/api/") .permanent() .build(); |
