Skip to content

Commit

Permalink
fix insecure url
Browse files Browse the repository at this point in the history
  • Loading branch information
ionansantos committed Dec 24, 2023
1 parent 99329bd commit b3f3db2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public function register()
*/
public function boot()
{
//
if(config('app.env') === 'production') {
\URL::forceScheme('https');
}
}
}
2 changes: 1 addition & 1 deletion config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
|
*/

'url' => env('APP_URL', 'https://locamais-6de27afff1a1.herokuapp.com'),
'url' => env('APP_URL', 'https://localhost'),

'asset_url' => env('ASSET_URL', null),

Expand Down

0 comments on commit b3f3db2

Please sign in to comment.