Merge branch 'feature-product' into development
WMS API/ECOMMERCE/pipeline/head This commit looks good Details

This commit is contained in:
Bayu Lukman Yusuf 2026-02-23 08:59:38 +07:00
commit 30ea286214
1 changed files with 9 additions and 0 deletions

View File

@ -4,6 +4,8 @@ namespace App\Providers;
use Illuminate\Support\ServiceProvider; use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\URL;
class AppServiceProvider extends ServiceProvider class AppServiceProvider extends ServiceProvider
{ {
/** /**
@ -20,5 +22,12 @@ class AppServiceProvider extends ServiceProvider
public function boot(): void public function boot(): void
{ {
// //
if (
request()->isSecure() ||
request()->server('HTTP_X_FORWARDED_PROTO') === 'https'
) {
URL::forceScheme('https');
}
} }
} }