mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #4462] [MERGED] Make HSTS policy configurable if https is enabled #5700
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#5700
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?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/4462
Author: @kayukin
Created: 5/18/2026
Status: ✅ Merged
Merged: 5/19/2026
Merged by: @MHSanaei
Base:
main← Head:configurable-hsts📝 Commits (3)
1120627Make HSTS policy configurable if https is enabledef1fa9cMerge branch 'main' into configurable-hsts46afac8refactor(web): gate HSTS at call site so XUI_SKIP_HSTS doesn't drop the Secure cookie flag📊 Changes
2 files changed (+7 additions, -1 deletions)
View changed files
📝
config/config.go(+5 -0)📝
web/web.go(+2 -1)📄 Description
What is the pull request?
Fixes the issue introduced in https://github.com/MHSanaei/3x-ui/pull/4179. If other sites are hosted on the same domain as 3x-ui (on different ports), they will all receive forced https.
Which part of the application is affected by the change?
Type of Changes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.