changes http secure aware

dev
Aji Kamaludin 1 year ago
parent 37ea342422
commit 68816cc2df
No known key found for this signature in database
GPG Key ID: 19058F67F0083AD3

@ -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);
}

Loading…
Cancel
Save