3x-ui/internal/web/controller
mrchatam bdd351bd15
fix(api): return 401 for invalid Bearer token instead of 404 (#6459)
When Authorization: Bearer is present but does not match (or is disabled),
respond with 401 Unauthorized so script authors can distinguish auth failure
from a wrong webBasePath. Requests with no Authorization header still get
404 masking; wrong base paths continue to 404 via NoRoute.

Fixes #6255

Co-authored-by: mrchatam <mrchatam@users.noreply.github.com>
2026-09-12 11:52:15 +02:00
..
api.go fix(api): return 401 for invalid Bearer token instead of 404 (#6459) 2026-09-12 11:52:15 +02:00
api_auth_test.go fix(api): return 401 for invalid Bearer token instead of 404 (#6459) 2026-09-12 11:52:15 +02:00
base.go
client.go feat(clients): support setting HWID limit and MTProto ad-tag in bulk adjust (#6399) 2026-09-10 16:24:48 +02:00
client_partial_apply_test.go fix(clients): flag the restart a partly-applied edit or delete still needs 2026-09-07 01:51:01 +02:00
dist.go
dist_test.go
geodata_test.go
group.go
host.go
host_test.go
inbound.go fix(inbounds): allow negative subSortIndex for subscription order (#6465) 2026-09-12 11:14:53 +02:00
inbound_node_sync_test.go fix(inbounds): reject missing TLS certificates before saving (#6429) 2026-09-08 18:08:24 +02:00
index.go fix: do not type successfull login twice (#6374) 2026-09-03 17:00:25 +02:00
login_limiter.go
login_limiter_test.go
node.go
node_credentials_writeonly_test.go
panel_update_test.go
pwa.go
pwa_test.go
server.go
setting.go
setting_test.go
spa.go
spa_test.go
sub_balancer.go
sub_balancer_test.go
util.go
util_test.go
websocket.go
xray_setting.go feat(outbounds): support custom subscription user agents (#6398) 2026-09-11 15:32:04 +02:00
xray_setting_warp_test.go