What does status=canceled for a resource mean in Chrome Developer Tools?

前端 未结 30 1974
温柔的废话
温柔的废话 2020-11-22 11:13

What would cause a page to be canceled? I have a screenshot of the Chrome Developer Tools.

\"Canceled

30条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-22 11:31

    Here is another case of request being canceled by chrome, which I just encountered, which is not covered by any of answers up there.

    In a nutshell
    Self-signed certificate not being trusted on my android phone.

    Details
    We are in development/debug phase. The url is pointing to a self-signed host. The code is like:

    location.href = 'https://some.host.com/some/path'
    

    Chrome just canceled the request silently, leaving no clue for newbie to web development like myself to fix the issue. Once I downloaded and installed the certificate using the android phone the issue is gone.

提交回复
热议问题