Add HTTPS schema enforcement in AppServiceProvider
All checks were successful
Deploy Production (admin.crewsportswear.app) / deploy (push) Successful in 2m21s
All checks were successful
Deploy Production (admin.crewsportswear.app) / deploy (push) Successful in 2m21s
This commit is contained in:
@@ -14,6 +14,9 @@ class AppServiceProvider extends ServiceProvider
|
||||
public function boot()
|
||||
{
|
||||
//
|
||||
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
|
||||
\URL::forceSchema('https');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user