mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 01:10:22 +03:00
[PR #130] [MERGED] fix: always set secure on cookie #945
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pocket-id/pocket-id/pull/130
Author: @cdanis
Created: 1/18/2025
Status: ✅ Merged
Merged: 1/19/2025
Merged by: @stonith404
Base:
main← Head:secure-cookie📝 Commits (1)
ea29afdalways set secure on cookie📊 Changes
2 files changed (+6 additions, -6 deletions)
View changed files
📝
backend/internal/controller/user_controller.go(+2 -2)📝
backend/internal/controller/webauthn_controller.go(+4 -4)📄 Description
HTTPS is required for WebAuthn, so there's no downside to enabling this. And it prevents accidentally leaking an access token to the network in cleartext on an initial HTTP connection.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.