# 主流浏览器中如何清除HSTS设置

HSTS（HTTP Strict Transport Security）国际互联网工程组织IETE正在推行一种新的Web安全协议

HSTS的作用是强制客户端（如浏览器）使用HTTPS与服务器创建连接。

## Chrome、Opera：

1. 在地址栏输入“chrome://net-internals/#hsts”
2. 在“Delete domain”的输入框中输入域名
3. 点击“Delete”按钮
4. 在“Query domain”的输入框中输入刚才的域名
5. 点击“Query”按钮
6. 如果看到“**Not found**”则表示清除成功

## Safari:

1. 关闭safari浏览器
2. 删除“\~/Library/Cookies/HSTS.plist”文件
3. 重新打开safari浏览器

## Firefox:

1. 关闭站点的所有标签页
2. 清除历史数据
3. 在地址栏输入“about:permissions”
4. 搜索并且点击站点
5. 点击“Forget About This Site”

\*从Firefox 45已经移除“about:permissions”页面，故此方法只在45版本以下适用。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://john-mao.gitbook.io/my-handbook/http/zhu-liu-liu-lan-qi-zhong-ru-he-qing-chu-hsts-she-zhi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
