HTTP only cookies

This commit is contained in:
Al Beano 2017-07-16 23:19:39 +01:00
parent 13447382a2
commit c0ba0c5c7b
1 changed files with 2 additions and 2 deletions

View File

@ -184,8 +184,8 @@ post '/login' => sub {
}, },
); );
cookie id => $user->{"id"}; cookie id => $user->{"id"}, http_only => 1;
cookie token => $token; cookie token => $token, http_only => 1;
template 'redir' => { template 'redir' => {
"redir" => "domains", "redir" => "domains",