chrome firefox 如何设置某个域名不强制 https 访问? - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
jaleo
V2EX    问与答

chrome firefox 如何设置某个域名不强制 https 访问?

  •  
  •   jaleo 2023-07-05 09:06:45 +08:00 2143 次点击
    这是一个创建于 857 天前的主题,其中的信息可能已经有所发展或是发生改变。
    家里公网 ip 绑定了域名 用于访问 openwrt
    http://domain.com:port 形式,新版的 chrome ( 113 以上)访问会用 https ,无法连接,用了网上的教程,chrome://net-internals/#hsts 删除域名不起作用。
    哪位有解决办法的指点下。
    14 条回复    2023-07-05 16:56:06 +08:00
    caqiko
        1
    caqiko  
       2023-07-05 09:17:54 +08:00 via Android
    cloudflare 域名解析添加一个重定向规则? https 重定向到 http ,chrome 不知道能不能行,前两周在 edge 上是可行的
    jaleo
        2
    jaleo  
    OP
       2023-07-05 09:26:56 +08:00
    @caqiko 我的域名在阿里云上 好像找不到 https 重定向的功能
    krixaar
        3
    krixaar  
       2023-07-05 09:32:22 +08:00   1
    刚刚用 Chrome 114 上了下 http 的煎蛋网没有自动跳转,你确定是浏览器的问题吗
    ugpass
        4
    ugpass  
       2023-07-05 09:50:52 +08:00
    chrome://flags ,搜索 Insecure origins treated as secure ,填上访问地址试试呢
    cat
        5
    cat  
       2023-07-05 09:54:37 +08:00
    Chrome 114 ,可以访问 http://,公司一堆内网系统都是 http:// 的
    注意要手动输入包括 http:// 部分,如果你只输入 domain:port 默认就是会补上 https://
    296727
        6
    296727  
       2023-07-05 10:16:23 +08:00
    https://blog.csdn.net/Dare_Huang/article/details/114008895 试试这个?我是 114 版本,一直都可以 http
    everyx
        7
    everyx  
       2023-07-05 11:15:44 +08:00
    有可能是之前有过重定向被缓存了,使用隐私模式,输入完整的带 http:// 的 URL 再试试
    shuimitao
        8
    shuimitao  
       2023-07-05 12:19:28 +08:00
    弄个证书就好了呀
    lisxour
        9
    lisxour  
       2023-07-05 14:30:50 +08:00
    这哪里归浏览器管啊,只要你手动输入 http ,浏览器怎么可能自动变 https ,自动变 https 只是那种不自己输入协议的情况,比如直接输入“www.baidu.com”,如果你输了 http ,还是变成了 https ,那是服务器的强制 https 给你跳转了。
    mxT52CRuqR6o5
        10
    mxT52CRuqR6o5  
       2023-07-05 14:33:31 +08:00
    配置了 hsts 浏览器就会自动重定向到 https 啊,怎么就不归浏览器管了
    Stlin
        11
    Stlin  
       2023-07-05 15:01:34 +08:00
    啊?我怎么没有强制 https ?也是域名加端口,系统版本:macOS M2 chrome 版本:114.0.5735.198 (正式版本) (arm64)
    yh7gdiaYW
        12
    yh7gdiaYW  
       2023-07-05 16:52:18 +08:00
    114 版本表示没有强制跳转,看了下文档:
    An HSTS enabled server can include the following header in an HTTPS reply:
    Strict-Transport-Security: max-age=16070400; includeSubDomains
    When the browser sees this, it will remember, for the given number of seconds, that the current domain should only be contacted over HTTPS.
    In the future, if the user types http:// or omits the scheme, HTTPS is the default. In fact, all requests for URLs in the current domain will be redirected to HTTPS
    所以是楼主的服务端的配置问题
    brader
        13
    brader  
       2023-07-05 16:55:31 +08:00
    我的最新版 chrome ,不会强制跳啊,能访问 http ,除非像我自己的有个域名,服务端 nginx 主动做了 http 重定向 302 到 https
    jujusama
        14
    jujusama  
       2023-07-05 16:56:06 +08:00
    Chrome 不会强制 https ,检查下是否是扩展插件导致的,如: https anywhere ,duckduckgo
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     2106 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 42ms UTC 00:48 PVG 08:48 LAX 16:48 JFK 19:48
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86