Deprecated getCurrentPosition() and watchPosition() are deprecated on HTTP calls. How can I fix it without switching to https?
<p>I'm using google maps on my webpage and on localhost everything works fine. But when I uploaded my webpage to amazon aws, I'm getting the error:</p>

<blockquote>
  <p>getCurrentPosition() and watchPosition() are deprecated on insecure
  origins, and support will be removed in the future. You should
  consider switching your application to a secure origin, such as HTTPS.
  See <a href="https://goo.gl/rStTGz" rel="nofollow">https://goo.gl/rStTGz</a> for more details.</p>
</blockquote>

<p>I've read that the solution for it is to use https instead of http, but my question is - how can I achieve a working version while using amazon aws? Can I just turn on there the https? </p>