I want to Disable redirecting from http to https in my Laravel 8 application temporarily due to some issues. I've tried the solution of This question but didn't work for me.
I have tried the following solution:
APP_URL="http://example.com"
FORCE_HTTPS=false2
I had reverted my Apache server configurations which caused https redirection. But even then, the problem was consistent. Because neither the Apache server nor Laravel were causing problems.
The problem was actually caused by web browsers. Once the browser stores an SSL certificate, it attaches the certificate to the site by itself sometimes. This was causing redirection from http to https. Browsers were doing this even in incognito mode.
This answer helped me in resolving my problem.
So I deleted the domain security policy using the following steps and the browser stopped this behavior.
chrome://net-internals/#hsts
chrome://settings/clearBrowserData