diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-25 21:40:45 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-25 21:42:17 +0800 |
commit | e915ec33eef9cb92a847d7f67227eab63dec9abc (patch) | |
tree | 25efc94b089f1d8dd44c2f55efef12f5a62b1ec1 | |
parent | Make primary-color-lighter lighter (diff) | |
download | powxy-e915ec33eef9cb92a847d7f67227eab63dec9abc.tar.gz powxy-e915ec33eef9cb92a847d7f67227eab63dec9abc.tar.zst powxy-e915ec33eef9cb92a847d7f67227eab63dec9abc.zip |
handler: Add Path: "/" for the cookiev0.1.83
If the user encounters a Powxy challenge while not on the root
directory, then the cookie will only be set for the current subtree. An
explicit path=/ is required in the cookie to make it apply across the
entire site.
-rw-r--r-- | handler.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -166,6 +166,7 @@ func handler(writer http.ResponseWriter, request *http.Request) { Value: base64.StdEncoding.EncodeToString(expectedMAC), Secure: true, HttpOnly: true, + Path: "/", }) slog.Info("accepted proof of work", |