Fix: force HTTPS scheme for assets to resolve mixed content errors
This commit is contained in:
@@ -27,6 +27,11 @@ class AppServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
// Paksa penggunaan HTTPS di environment selain local untuk mencegah Mixed Content
|
||||
if (config('app.env') !== 'local') {
|
||||
URL::forceScheme('https');
|
||||
}
|
||||
|
||||
Paginator::useBootstrap();
|
||||
Schema::defaultStringLength(191);
|
||||
View::share('baseUrl', URL::to('/'));
|
||||
|
||||
Reference in New Issue
Block a user