title: Insecure connection on localhost
body: <p>I am using Laravel 7 and utilizing Laravel socialite package for the first time for authenticating with facebook.</p>
  <p>The problem is I am on localhost and when I am redirected to facebook I am getting error saying</p>
  <pre><code>Facebook has detected that XYZ isn't using a secure connection to transfer information.
  
  Until XYZ updates its security settings, you won't be able to use Facebook to log in to it.
  </code></pre>
  <p>I tried to configure my xampp to run localhost on https by following these methods</p>
  <ol>
  <li><a href="https://stackoverflow.com/a/28658969/12168002">https://stackoverflow.com/a/28658969/12168002</a></li>
  <li><a href="https://www.youtube.com/watch?v=Mig9YPNiUZI" rel="nofollow noreferrer">https://www.youtube.com/watch?v=Mig9YPNiUZI</a></li>
  </ol>
  <p>but none of them worked for me.</p>
  <p>I watched few socialite installation videos and noticed that none of them was having secure connection but still able to authenticate user successfully.</p>
  <p>Please highlight the actual cause of me getting this error and how can I fix this?</p>