V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
jaleo
V2EX  ›  问与答

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

  •  
  •   jaleo · 297 天前 · 1460 次点击
    这是一个创建于 297 天前的主题,其中的信息可能已经有所发展或是发生改变。
    家里公网 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  
       297 天前 via Android
    cloudflare 域名解析添加一个重定向规则? https 重定向到 http ,chrome 不知道能不能行,前两周在 edge 上是可行的
    jaleo
        2
    jaleo  
    OP
       297 天前
    @caqiko 我的域名在阿里云上 好像找不到 https 重定向的功能
    krixaar
        3
    krixaar  
       297 天前   ❤️ 1
    刚刚用 Chrome 114 上了下 http 的煎蛋网没有自动跳转,你确定是浏览器的问题吗
    ugpass
        4
    ugpass  
       297 天前
    chrome://flags ,搜索 Insecure origins treated as secure ,填上访问地址试试呢
    cat
        5
    cat  
       297 天前
    Chrome 114 ,可以访问 http://,公司一堆内网系统都是 http:// 的
    注意要手动输入包括 http:// 部分,如果你只输入 domain:port 默认就是会补上 https://
    296727
        6
    296727  
       297 天前
    https://blog.csdn.net/Dare_Huang/article/details/114008895 试试这个?我是 114 版本,一直都可以 http
    everyx
        7
    everyx  
       297 天前
    有可能是之前有过重定向被缓存了,使用隐私模式,输入完整的带 http:// 的 URL 再试试
    shuimitao
        8
    shuimitao  
       297 天前
    弄个证书就好了呀
    lisxour
        9
    lisxour  
       297 天前
    这哪里归浏览器管啊,只要你手动输入 http ,浏览器怎么可能自动变 https ,自动变 https 只是那种不自己输入协议的情况,比如直接输入“www.baidu.com”,如果你输了 http ,还是变成了 https ,那是服务器的强制 https 给你跳转了。
    mxT52CRuqR6o5
        10
    mxT52CRuqR6o5  
       297 天前
    配置了 hsts 浏览器就会自动重定向到 https 啊,怎么就不归浏览器管了
    Stlin
        11
    Stlin  
       297 天前
    啊?我怎么没有强制 https ?也是域名加端口,系统版本:macOS M2 chrome 版本:114.0.5735.198 (正式版本) (arm64)
    yh7gdiaYW
        12
    yh7gdiaYW  
       297 天前
    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  
       297 天前
    我的最新版 chrome ,不会强制跳啊,能访问 http ,除非像我自己的有个域名,服务端 nginx 主动做了 http 重定向 302 到 https
    jujusama
        14
    jujusama  
       297 天前
    Chrome 不会强制 https ,检查下是否是扩展插件导致的,如: https anywhere ,duckduckgo
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   944 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 19:40 · PVG 03:40 · LAX 12:40 · JFK 15:40
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.