# https chrome 打不開 解決 localhost 的 http 網站被強制導向 https 的問題 edge適用 (hsts)
###### tags: `程式設計`
## 問題
有時候開沒有https的網頁,chrome會強制導向https,即使手動在網址列重打成http,但一進該網頁重看網址,又被跳成https的情況
## chrome或edge都通用
1. 開啟瀏覽器
1. 在網址列輸入以下網址開啟設定頁面
chrome://net-internals/#hsts
edge://net-internals/#hsts
1. 到最下方找到 Delete domain security policies 設定,輸入localhost按下Delete

## 參考來源
https://stackoverflow.com/questions/25277457/google-chrome-redirecting-localhost-to-https
https://dotblogs.com.tw/ian/2019/12/19/edge_http_autoredirect_https