Add HTTPS schema enforcement in AppServiceProvider
All checks were successful
Deploy Production (admin.crewsportswear.app) / deploy (push) Successful in 2m21s

This commit is contained in:
Frank John Begornia
2026-01-02 00:45:03 +08:00
parent 784fae63e2
commit 71d4bb479f

View File

@@ -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');
}
}
/**
@@ -25,4 +28,4 @@ class AppServiceProvider extends ServiceProvider
{
//
}
}
}