mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-04-25 12:15:50 +03:00
[GH-ISSUE #730] [BUG] session redirect on http, not https behind reverse proxy #465
Labels
No labels
Fixed (Pending PR Merge)
Stale
bug
enhancement
enhancement
good first issue
help wanted
keep-open
needs more info
pull-request
question
theme
unfortunate
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/whoogle-search#465
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Originally created by @spitsw on GitHub (Apr 22, 2022).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/730
Describe the bug
When whoogle is deployed behind a https enabled reverse proxy, the session initiation redirect (307) still uses the http scheme. The Location header in the redirect still begins with http://. It is expected that https:// be the target of the redirect. HTTPS_ONLY environment variable does not have any affect the behaviour of this issue.
To Reproduce
Steps to reproduce the behavior:
< HTTP/2 307
< content-type: text/html; charset=utf-8
< date: Fri, 22 Apr 2022 07:17:03 GMT
< location: http://whoogle.url/session/be68d74b-7eba-44ca-93fd-b5cd1e9ba627?follow=https%3A%2F%2Fwhoogle.url%2F
< server: waitress
< set-cookie: __Secure-session=f56385f2-f924-4c5f-b8f4-2558fb8684cb; Expires=Mon, 23-May-2022 07:17:04 GMT; Secure; HttpOnly; Path=/; SameSite=Strict
< x-content-type-options: nosniff
< x-frame-options: DENY
< content-length: 387
<
Deployment Method
runexecutablefly.io
Version of Whoogle Search