[GH-ISSUE #4746] [Bug]: Unable to access the panel login through the domain name #3288

Closed
opened 2026-10-31 20:31:22 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @290906666 on GitHub (Jun 1, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4746

Describe the bug

Unable to log in to the panel using domain name listening. Logging in with IP works normally. As long as the domain name is set for accessing the TG bot, it shows that the panel is logged in, but the panel is blank and cannot be refreshed. Hope to fix this critical bug as soon as possible.

How to reproduce the problem

As long as you set it to use the specified domain name to access, after entering the account and password for verification, it is 100% a blank page and cannot enter the panel normally.

Expected behavior

No response

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

3.2.5

Xray-core version

No response

How did you install 3x-ui?

install.sh script

Operating system

Ubuntu 24.04

Which parts of the panel are affected?

No response

Browser (only if it is a UI bug)

No response

Is the panel behind a reverse proxy or CDN?

None

Before submitting

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
Originally created by @290906666 on GitHub (Jun 1, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4746 ### Describe the bug Unable to log in to the panel using domain name listening. Logging in with IP works normally. As long as the domain name is set for accessing the TG bot, it shows that the panel is logged in, but the panel is blank and cannot be refreshed. Hope to fix this critical bug as soon as possible. ### How to reproduce the problem As long as you set it to use the specified domain name to access, after entering the account and password for verification, it is 100% a blank page and cannot enter the panel normally. ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.2.5 ### Xray-core version _No response_ ### How did you install 3x-ui? install.sh script ### Operating system Ubuntu 24.04 ### Which parts of the panel are affected? _No response_ ### Browser (only if it is a UI bug) _No response_ ### Is the panel behind a reverse proxy or CDN? None ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:31:22 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Jun 1, 2026):

Thank you for the report.

The blank page after login when accessing via domain name is likely related to the Web Domain (webDomain) setting in the panel. When a domain is configured, a domain-validation middleware is activated that blocks any request whose Host header does not exactly match the configured value. A mismatch (e.g. example.com vs www.example.com, or the panel redirecting internally to the IP after login) would cause all subsequent API calls to return HTTP 403, leaving the SPA with nothing to render.

To help narrow this down, could you please provide:

  1. Browser console output (F12 → Console tab) — any red errors after you log in via the domain name?
  2. Network tab errors (F12 → Network tab) — are any requests returning 403 or other error codes after the login redirect?
  3. Exact value set in Panel Settings → Web Domain — does it include www., a port, or a trailing slash?
  4. Access URL — are you accessing via http://yourdomain:port or https://yourdomain:port?
  5. Panel log output — run x-ui log or journalctl -u x-ui immediately after reproducing the issue.

Temporary workaround: If you clear the Web Domain field in the panel settings and restart, access via domain should work again (at the cost of disabling domain restriction). This can confirm whether the webDomain setting is indeed the trigger.

<!-- gh-comment-id:4591102817 --> @github-actions[bot] commented on GitHub (Jun 1, 2026): Thank you for the report. The blank page after login when accessing via domain name is likely related to the **Web Domain** (`webDomain`) setting in the panel. When a domain is configured, a domain-validation middleware is activated that blocks any request whose `Host` header does not exactly match the configured value. A mismatch (e.g. `example.com` vs `www.example.com`, or the panel redirecting internally to the IP after login) would cause all subsequent API calls to return HTTP 403, leaving the SPA with nothing to render. To help narrow this down, could you please provide: 1. **Browser console output** (F12 → Console tab) — any red errors after you log in via the domain name? 2. **Network tab errors** (F12 → Network tab) — are any requests returning 403 or other error codes after the login redirect? 3. **Exact value** set in *Panel Settings → Web Domain* — does it include `www.`, a port, or a trailing slash? 4. **Access URL** — are you accessing via `http://yourdomain:port` or `https://yourdomain:port`? 5. **Panel log output** — run `x-ui log` or `journalctl -u x-ui` immediately after reproducing the issue. **Temporary workaround:** If you clear the *Web Domain* field in the panel settings and restart, access via domain should work again (at the cost of disabling domain restriction). This can confirm whether the `webDomain` setting is indeed the trigger.
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
MHSanaei/3x-ui#3288
No description provided.