Skip to content

Commit

Permalink
Laravel - Fixed compatibility with Laravel 5.6 when client-metrics or…
Browse files Browse the repository at this point in the history
… toolbar is enabled.
  • Loading branch information
itsgoingd committed Feb 20, 2024
1 parent 00d39b3 commit ccdcaee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Clockwork/Support/Laravel/ClockworkSupport.php
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ public function processRequest($request, $response)
];

$response->cookie(
new Cookie('x-clockwork', json_encode($clockworkBrowser), time() + 60, null, null, null, false)
new Cookie('x-clockwork', json_encode($clockworkBrowser), time() + 60, null, null, $request->secure(), false)
);
}

Expand Down

0 comments on commit ccdcaee

Please sign in to comment.