mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #1377] [建议]希望在https2http中添加一个head #1091
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#1091
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 @status301 on GitHub (Aug 12, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1377
Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly.
(为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。)
(请不要在 issue 评论中出现无意义的 加1,我也是 等内容,将会被直接删除。)
(由于个人精力有限,和系统环境,网络环境等相关的求助问题请转至其他论坛或社交平台。)
Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST
What version of frp are you using (./frpc -v or ./frps -v)?
0.27.0
What operating system and processor architecture are you using (
go env)?Configures you used:
frps : ip 172.17.0.1
frpc:
Steps to reproduce the issue:
Describe the results you expected:
在https2http中增加一个head,让后端能判断浏览器是否使用https访问(让后端将页面重定向到https)
Additional information you deem important (e.g. issue happens only occasionally):
现在只能在页面中使用js强制跳转页面,会使页面加载两次
Can you point out what caused this issue (optional)
@fatedier commented on GitHub (Aug 12, 2019):
可以支持。
在 https2http 的 plugin 中增加
plugin_header_开头的配置,和 http 类型的header_作用相同。例如:
@status301 commented on GitHub (Aug 13, 2019):
@fatedier 建议使https支持header_ ,这样覆盖面会广一点
在frpc的https中配置header_security = https 后,后端并没有收到相关head。
https://github.com/fatedier/frp/blob/master/conf/frpc_full.ini
frpc:
@fatedier commented on GitHub (Aug 13, 2019):
@status301 https 无法支持,只有 http 可以支持。
服务端不存储用户证书,不会解析 https 协议,如果有这样的需求,建议前面挡一个 nginx。
@status301 commented on GitHub (Aug 13, 2019):
我明白了,还是加plugin_header_吧
@fatedier commented on GitHub (Aug 29, 2019):
Support in v0.29.0