Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ngoquocdat's avatar

Invalid request (Unsupported SSL request)

I cannot access my project using url https://localhost:8000 (I am doing Facebook login application) How can I fix this? Thank you very much

0 likes
12 replies
ngoquocdat's avatar

on localhost, https still works but laravel doesn't

laracoft's avatar

@datlechin where are you seeing Invalid request (Unsupported SSL request)? And if I may ask, where or how did you get a cert for localhost?

laracoft's avatar

@datlechin

  1. Did you specify https://localhost:8000 to facebook anywhere by mistake?
  2. After the facebook redirect, can you just change it to http:// and continue?
  3. The Laravel built in server.php does not support HTTPS.
  4. For HTTPS, you need to use a proper HTTP server
ngoquocdat's avatar

So is there any way I can use https on laravel of localhost

laracoft's avatar

@datlechin

  1. no, not using server.php like what you are doing now
  2. The only way is to setup a proper HTTPS server
satishglondhe@gmail.com's avatar

Check APP_ENV variable in your .env file. Set it to local. This solved my same issue

rehman_ali's avatar

I was facing the same issue. I made following changes: changed APP_URL_SCHEME=https to APP_URL_SCHEME=http this solved my problem

Please or to participate in this conversation.