- I have backend panel in laravel 8 for example
- When I enter id and password in the login then dashboard url becomes http instead of https and the error message says
The information that you’re about to submit is not secure
What I have done.
- APP_ENV is in production and APP_DEBUG is false
- I wrote the below coding in config App.php
if (env (key: ‘APP_ENV’) !== ‘local’) {
URL::forceScheme( scheme: ‘https’);
}
- asset_url is https in the app.php
I hope someone faced this issue. I have been trying for last 4 days.
Thanks!