Skip to content

Commit fd0cf0f

Browse files
committed
Only force SSL scheme when in production
1 parent 96a09c5 commit fd0cf0f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/Providers/AppServiceProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ public function boot(): void
4949
'plugin' => Plugin::class,
5050
]);
5151

52-
URL::forceScheme('https');
52+
if ($this->app->environment('production')) {
53+
URL::forceScheme('https');
54+
}
5355

5456
RateLimiter::for('vpn_api', function (CheckIfIpIsVpn $job): Limit {
5557
if (

0 commit comments

Comments
 (0)