Skip to content

Commit

Permalink
XSRF-TOKEN cookie can be securely set as httpOnly in config
Browse files Browse the repository at this point in the history
  • Loading branch information
ametad committed Nov 8, 2016
1 parent 1badfbd commit 2241b02
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ protected function addCookieToResponse($request, $response)
$response->headers->setCookie(
new Cookie(
'XSRF-TOKEN', $request->session()->token(), Carbon::now()->getTimestamp() + 60 * $config['lifetime'],
$config['path'], $config['domain'], $config['secure'], false
$config['path'], $config['domain'], $config['secure'], $config['http_only']
)
);

Expand Down

0 comments on commit 2241b02

Please sign in to comment.