[GH-ISSUE #539] [FEATURE] Considering to use much secure session cookie. #348

Closed
opened 2026-02-25 20:35:30 +03:00 by kerem · 1 comment
Owner

Originally created by @nakoo on GitHub (Nov 19, 2021).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/539

Describe the feature you'd like to see added
Whoogle should only use session cookie when HTTPS is enforced so that we can improve the security by adding __host (OR __secure) prefix and Secure flag. Current set-cookie header is not secure option.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie

mo1

mo2

(screenshots from Mozilla Observatory)

Additional context
Since Whoogle now use much better implemetation of disabled cookie situation (#480), now we can enforce HTTPS to use session cookie. I think it's good time to do so.

Originally created by @nakoo on GitHub (Nov 19, 2021). Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/539 <!-- DO NOT REQUEST UI/THEME/GUI/APPEARANCE IMPROVEMENTS HERE THESE SHOULD GO IN ISSUE #60 REQUESTING A NEW FEATURE SHOULD BE STRICTLY RELATED TO NEW FUNCTIONALITY --> **Describe the feature you'd like to see added** Whoogle should only use session cookie when HTTPS is enforced so that we can improve the security by adding `__host` (OR `__secure`) prefix and `Secure` flag. Current set-cookie header is not secure option. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie ![mo1](https://user-images.githubusercontent.com/4975021/142615672-7f0d29ae-f294-4794-9564-76321226be9d.png) ![mo2](https://user-images.githubusercontent.com/4975021/142615692-36d81785-7c33-4910-b47c-6f140a3caadc.png) (screenshots from Mozilla Observatory) **Additional context** Since Whoogle now use much better implemetation of disabled cookie situation (#480), now we can enforce HTTPS to use session cookie. I think it's good time to do so.
kerem 2026-02-25 20:35:30 +03:00
Author
Owner

@benbusby commented on GitHub (Nov 20, 2021):

Added -- these values are only set when the HTTPS_ONLY var is set though. Otherwise instances running in local networks w/o SSL wouldn't be able to use sessions anymore.

Thanks for the suggestion!

<!-- gh-comment-id:974726901 --> @benbusby commented on GitHub (Nov 20, 2021): Added -- these values are only set when the `HTTPS_ONLY` var is set though. Otherwise instances running in local networks w/o SSL wouldn't be able to use sessions anymore. Thanks for the suggestion!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whoogle-search#348
No description provided.