“unsafely-treat-insecure-origin-as-secure” flag is not working on Chrome

前端 未结 7 2113
天涯浪人
天涯浪人 2020-12-01 04:36

I am using geo-location for a site running locally on my machine using HTTP on Chrome. However this does not work as I am running on HTTP as opposed to HTTPS.

On th

7条回答
  •  一向
    一向 (楼主)
    2020-12-01 05:07

    With Chrome 79 this setting doesn't work no matter what.

    What I ended up doing was to configure the domain on a VPS to show some test webpage and then generate a valid certificate for it using Let's Encrypt's certbot.

    Then I copied that certificate to my machine and it's now valid.

提交回复
热议问题