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()
|
public function boot()
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
|
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
|
||||||
|
\URL::forceSchema('https');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -25,4 +28,4 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
{
|
{
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user