From c0ba0c5c7b647b5fd9dc33117deda675bbb400be Mon Sep 17 00:00:00 2001 From: Al Beano Date: Sun, 16 Jul 2017 23:19:39 +0100 Subject: [PATCH] HTTP only cookies --- lib/cyberman.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cyberman.pm b/lib/cyberman.pm index c638aeb..6984f21 100644 --- a/lib/cyberman.pm +++ b/lib/cyberman.pm @@ -184,8 +184,8 @@ post '/login' => sub { }, ); - cookie id => $user->{"id"}; - cookie token => $token; + cookie id => $user->{"id"}, http_only => 1; + cookie token => $token, http_only => 1; template 'redir' => { "redir" => "domains",