我的Safari副本拒绝打开我的网站example.com
。
每次我尝试访问http://example.com
时,Safari(不是服务器!)都会将我重定向到https://example.com
,并立即告诉我:
"Safari can't open the page "https://example.com" because Safari can't connect to the server "example.com".
好像我的Safari副本已“缓存” HTTPS重定向之类的内容。
这是我尝试过的:
但是仍然每次我立即收到消息。它以毫秒为单位出现,使我认为它已缓存在某个地方。
尝试使用 guest 帐户时,问题就消失了。但是,我的Mac在家和在办公室都受到影响,大概是因为iCloud正在同步某种Safari缓存文件。
This thread here似乎暗示它与HSTS有关(就像@rluta认为的那样),或者与设置的
Strict-Transport-Security
header 有关。我已经确认并且在访问网页时未设置Strict-Transport-Security
header 。如果有可能的话,我真的不想在每天使用Safari时“重置”我的Safari副本。有任何想法吗?
最佳答案
关于macos - 我的Safari特定安装拒绝打开我的网站,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31287854/