I’m trying to run my Laravel project over the local network for development using the following command:
php artisan serve --host=192.168.1.88
The landing page loads fine, but when I try to log into the system, I encounter this error:
192.168.1.88:40062 Invalid request (Unsupported SSL request)
Additionally, assets (CSS/JS/images) are not loading properly after login.
I’m currently using Ubuntu OS, and this issue only happens after login — it seems like an SSL-related problem, even though I’m not using HTTPS explicitly.
What I suspect:
- Laravel or the web server might be trying to redirect to HTTPS after login.
- Some middleware (like RedirectToHttps) could be forcing HTTPS.
- The asset URLs might be being generated as https:// instead of http:// in certain parts of the application.
What I’ve tried so far:
-
Confirmed APP_URL=http://192.168.1.88:8000 in my .env file.
-
Cleared config cache using:
php artisan config:clear
php artisan cache:clear
php artisan route:clear -
Restarted the Laravel server.
What I need:
-
A solution to disable any forced HTTPS redirection during local development.
-
A way to ensure assets load over HTTP when using php artisan serve without SSL.
-
Any config or server change required to fix the “Invalid request (Unsupported SSL request)” error.
Could you please help me identify and fix this issue?