@ -51,3 +51,5 @@ VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
HTTP_SECURE_AWARE=false
@ -17,9 +17,9 @@ class HttpSecureAware
*/
public function handle(Request $request, Closure $next)
{
if(app()->isProduction() && !$request->secure()) {
if (env('HTTP_SECURE_AWARE', false)) {
URL::forceScheme('https');
$request->server->set('HTTPS','on');
$request->server->set('HTTPS', 'on');
}
return $next($request);