Form is not secure(Web App, Laravel)

Baiel MUZURAIMOV 1 Reputation point
2022-11-14T10:39:16.217+00:00

My Laravel app is running well except for the form submitting.
I disabled debug mode. I don't have this issue when running on local machine
or a different web server.
I submitted browser message below.

260095-screenshot-from-2022-11-14-18-33-24.png

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,691 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Baiel MUZURAIMOV 1 Reputation point
    2022-11-22T00:13:49.22+00:00

    **Problem Solved
    I had to add these lines both in my /routes/web.php and /routes/api.php

    if (App::environment('production')) {  
        URL::forceScheme('https');  
    }  
    

    Thanks @SnehaAgrawal-MSFT

    0 comments No comments