diff --git a/lib/JSTAPd/Server.pm b/lib/JSTAPd/Server.pm index e636079..9fa1c9e 100644 --- a/lib/JSTAPd/Server.pm +++ b/lib/JSTAPd/Server.pm @@ -166,7 +166,10 @@ sub handler { # set test session cookie if ($path eq 'index' || $path =~ /\.t$/) { - $res->cookies->{$jstapd_prefix} = { value => $session }; + $res->cookies->{$jstapd_prefix} = { + value => $session, + path => '/', + }; } } elsif (($path) = $req->uri->path =~ m!^/${jstapd_prefix}__api/(.+)?$!) { # ajax request for jstapd