Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加HSTS支持 #7435

Closed
4 tasks done
written143 opened this issue Oct 30, 2024 · 3 comments
Closed
4 tasks done

增加HSTS支持 #7435

written143 opened this issue Oct 30, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@written143
Copy link

Please make sure of the following things

  • I have read the documentation.
  • I'm sure there are no duplicate issues or discussions.
  • I'm sure this feature is not implemented.
  • I'm sure it's a reasonable and popular requirement.

Description of the feature / 需求描述

HTTP 严格传输安全 (HSTS, RFC 6797) 是一个标头,允许网站在客户端 Web 浏览器中指定并强制执行安全策略。强制执行此策略可以保护安全网站免受降级攻击、SSL 剥离和 Cookie 劫持。它允许 Web 服务器声明一个策略,即浏览器将仅使用安全 HTTPS 连接进行连接,并确保最终用户不会“点击”重要安全警告警示的内容。HSTS 是实现高安全性网站的一项重要安全机制。仅当通过 HTTPS 连接(而非 HTTP)提供服务时,才会遵守 HSTS 标头。

Suggested solution / 实现思路

No response

Additional context / 附件

No response

@written143 written143 added the enhancement New feature or request label Oct 30, 2024
@written143
Copy link
Author

written143 commented Oct 30, 2024

Client sent an HTTP request to an HTTPS server. 不启用hsts部分浏览器就不会自动https
配置文件的force https不管用

@yyyytawa
Copy link

yyyytawa commented Nov 2, 2024

请使用NGINX反代手动添加hsts的请求头

@written143
Copy link
Author

请使用NGINX反代手动添加hsts的请求头

nginx在windows下的稳定性就是一坨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants