mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #1392] 个别网页出现401错误 #1100
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#1100
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 @Nisekoi5 on GitHub (Aug 17, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1392
What version of frp are you using (./frpc -v or ./frps -v)?
frps: 0.28.2
frpc: 0.28.2
What operating system and processor architecture are you using (
go env)?Server: CentOS7
Client: Openwrt x86
Configures you used:
Server:
Client:
Steps to reproduce the issue:
qb.域名.com:10080与lede.域名.com:10080qb报错 HTTP ERROR 401,lede正常打开qb所代理的网页,即192.168.51.235:12321正常打开Describe the results you received:
Server:
Client:
Describe the results you expected:
网页
qb所代理的网页为bt软件qbittorrent的web界面,外部端口为12321,软件是使用docker运行的。此处附上docker配置图与网页打开界面docker配置
https://i.loli.net/2019/08/17/xyg7JfCkbzS8ohV.png
内网打开qbittorrent
https://i.loli.net/2019/08/17/3y6LTknMYbgKfp5.png
frp打开lede
https://i.loli.net/2019/08/17/R3EOtwcsZpYFMhb.png
frp打开qb
https://i.loli.net/2019/08/17/qI9lm4B5t2rC76R.png
我想用内网穿透实现在外网添加种子等操作。但是无论怎么设置都出现http 401错误,且只在这一个页面上出现。在仪表盘或者服务器日志均无异常。
Additional information you deem important (e.g. issue happens only occasionally):
Can you point out what caused this issue (optional)
@fatedier commented on GitHub (Aug 17, 2019):
401 表示鉴权失败,这个一般是你自己的内网的 web 服务返回的,你需要确认一下是否是这方面的原因。
@bingzhangdai commented on GitHub (Jun 22, 2020):
@Nisekoi5 Same problem here. 我也只有这一个网页出错,但配置应该是没有问题的,所有的网页都是同一个配置,并且内网访问没有问题,内网也是通过一个reverse proxy访问的。
@Nisekoi5 commented on GitHub (Jun 22, 2020):
关闭CSRF即可
@bingzhangdai commented on GitHub (Jun 23, 2020):
感谢提醒,但似乎是关掉 Host header validation 才行。
@youthlin commented on GitHub (Apr 7, 2021):
遇到同样的问题,请问是怎么关掉这个验证的呀
@flybird027 commented on GitHub (Jan 10, 2022):
登陆后 --工具--选项--webUI-- 下滑找到 【验证】 这里
取消勾选 Host header 属性验证
实测有效
@shermanx commented on GitHub (Jul 6, 2022):
openwrt+nginx也出现这个问题,请教如何解决?
frpc 0.43.0
@yikexiaoyao commented on GitHub (Mar 6, 2023):
http能正常访问,但是https显示401,页面元素加载异常


求教,怎么解决,感谢