Fix: force HTTPS scheme for assets to resolve mixed content errors
This commit is contained in:
@@ -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('/'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user