mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #5192] Dashboard fetch fails with "Request cannot be constructed from a URL that includes credentials" when accessing via Basic Auth in URL #4054
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#4054
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 @richex-cn on GitHub (Mar 4, 2026).
Original GitHub issue: https://github.com/fatedier/frp/issues/5192
Bug Description
When accessing the frp dashboard using a URL that includes HTTP Basic Auth credentials directly (e.g.
https://user:password@yourdomain.com:7500/), the dashboard frontend fails to load server info.A browser console error appears:
After this error, a popup shows: "Get server info from frps failed!"
If I remove the
user:password@part from the URL and let the browser prompt for credentials, everything works normally.Expected behavior
The dashboard should load normally even when credentials are provided in the URL (many users bookmark such URLs for quick access without repeated login prompts).
Environment
Additional context
This is a browser security restriction: modern browsers forbid constructing
fetch()requests from a URL that contains embedded credentials (username:password@) for security reasons (URL leaking, logging, etc.).Thanks for this great tool!
frpc Version
0.67.0
frps Version
0.67.0
System Architecture
windows/amd64
Configurations
Logs
No response
Steps to reproduce
https://admin:yourpass@dashboard.example.com:7500/Affected area
@github-actions[bot] commented on GitHub (Mar 19, 2026):
Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.
@fatedier commented on GitHub (Mar 20, 2026):
This is a browser security restriction — modern browsers block fetch() from URLs with embedded credentials (user:password@host). This is not something frp can or should work around. Please access the dashboard without credentials in the URL and let the browser prompt for authentication instead.