AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 1156945
Accepted
Ross Bush
Ross Bush
Asked: 2024-03-27 02:55:33 +0800 CST2024-03-27 02:55:33 +0800 CST 2024-03-27 02:55:33 +0800 CST

浏览器显示黑色“xxx 花费太长时间响应”3 秒,然后显示预期页面

  • 772

有两个应用程序 A 和 B。

A用于验证用户身份并将token传递给B,B添加cookie。

每当 cookie 过期或经过很长一段时间或硬浏览器重置后,就会发生奇怪的情况。

没有提琴手:

用户点击应用程序 A 输入凭据并转发到应用程序 B。立即,三秒钟内,浏览器会显示黑色的“xxx 响应时间太长”错误屏幕,然后默认页面“就地”呈现并替换不久之后出现错误屏幕。当 cookie 过期或经过很长一段时间后,就会发生这种情况。

图像

与 Fiddler 一起:(参见第 61、71 和 83 节)

当我在 fiddler 中执行相同的场景时,我希望看到黑色的“xxx 响应时间太长”屏幕,我得到了带有打开锁定图标的证书错误屏幕。我三次都驳回了这一点。当我忽略 ssl 隧道错误时,默认用户页面正在呈现。

在此输入图像描述

图像

相关性大约是在小提琴中的锁定对话框与我得到黑色浏览器错误屏幕的同一位置,并且应用程序似乎正在后台加载,然后在完全加载后刷新。

我的想法是,有一个 https-->http 请求被 A-->B“部分”阻止,因为 B 只是 http,没有证书。开发人员告诉我他们找不到 https 发出的请求。

所以,我无法弄清楚 ssl 隧道来自哪里(请参见屏幕截图)。我的想法是。

  1. The devs missed something and one of the calls is http.

  2. A network appliance is attempting to convert the call to https, though there are no url rewrites on the IIS server.

What would cause a black "xxx took too long to respond" to render while the default page is loading? It feels like a scenario where the request was changed before it was fully read or something like that.

https
  • 1 1 个回答
  • 6673 Views

1 个回答

  • Voted
  1. Best Answer
    Ross Bush
    2024-03-30T07:01:52+08:002024-03-30T07:01:52+08:00

    After a proper investigation, the incoming requests, although over http, had the Upgrade-Insecure-Requests: header set to 1. This in essence caused the following events to occur in accordiance with HSTS or HTTP Strict Transport Security.

    1. Initial http request results in a 307 - temporary redirect.
    2. HSTS makes second https request.
        a. The ssl certificate had expired on the dev web server.
        b. It appears that HSTS catches the invalid certificate and issues another redirect, essentially downgrading to http.
    3. Redirect to http successful.
    

    Solution: Add a valid ssl certificate binding to the website.

    令人困惑的是,为什么浏览器在渲染回退到 http 响应之前渲染库存“请求花费太长时间”错误页面。好吧,如果检查调用链,我们可以看到其中一个重定向,我猜测是对 https 的升级,导致 Time 值(未知)。将鼠标悬停在记录上会显示附带的消息 - “该请求无法在此处显示,因为发出该请求的页面已卸载”。也许浏览器会将其解释为客户端已断开连接或退出等待响应。(内部的某些东西升级并请求 ssl,然后浏览器确定证书是错误的并放弃请求)回退到库存图像错误屏幕,而第二个重定向正在进行到成功的 http。

    在此输入图像描述

    尝试升级然后降级的另一个视图。

    在此输入图像描述

    • 0

相关问题

  • 为 IIS 7.0 问题创建证书

  • IE6 和更高版本在 HTTPS 处理方面的差异

  • 如何模拟连接到 HTTPS 并记录握手?

  • SSL 错误:ssl_error_bad_mac_read

  • 在实时站点上使用自签名证书有什么好处?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve