Fix: force HTTPS scheme for assets to resolve mixed content errors

This commit is contained in:
2026-08-30 12:13:15 +07:00
parent da74b66241
commit 42ab1b4c13
+6 -1
View File
@@ -27,8 +27,13 @@ class AppServiceProvider extends ServiceProvider
*/ */
public function boot() public function boot()
{ {
// Paksa penggunaan HTTPS di environment selain local untuk mencegah Mixed Content
if (config('app.env') !== 'local') {
URL::forceScheme('https');
}
Paginator::useBootstrap(); Paginator::useBootstrap();
Schema::defaultStringLength(191); Schema::defaultStringLength(191);
View::share('baseUrl', URL::to('/')); View::share('baseUrl', URL::to('/'));
} }
} }