【问题标题】:Get address using geolocation in http website在 http 网站中使用地理位置获取地址
【发布时间】:2017-12-06 16:49:20
【问题描述】:

最近我在 asp.net 核心中创建了一个网站,并托管在 Azure 共享层(非安全)中。我的网站上有一个功能,根据地理位置和自动填写注册表获取用户地址。

问题

  1. getCurrentPosition() 和 watchPosition() 不再适用于不安全的来源(从 Chrome 50 开始,Geolocation API 将仅适用于 HTTPS 等安全上下文。)
  2. 网站很小,我不想花钱买 SSL 证书。 (我可以免费使用 SSL https://letsencrypt.org/
  3. 自定义 SSL 证书托管仅适用于 Azure Basic 及以上层。

是否有任何可用的解决方案/解决方法?

谢谢,

【问题讨论】:

    标签: azure google-chrome geolocation ssl-certificate azure-web-app-service


    【解决方案1】:

    使用 Let's Encrypt (https://letsencrypt.org/) 免费获取证书。

    【讨论】:

      【解决方案2】:

      注册 CloudFlare 免费计划并使用他们的免费 SSL。

      https://www.cloudflare.com/ssl/

      【讨论】:

        猜你喜欢
        • 2014-02-13
        • 1970-01-01
        • 1970-01-01
        • 2011-01-06
        • 1970-01-01
        • 1970-01-01
        • 2011-07-08
        • 2021-11-17
        • 1970-01-01
        相关资源
        最近更新 更多