blob: 8a32f95df7c35e581c79a80389be81a3654d5e27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
function handleRequest(request, response)
{
var queryString = request.queryString;
switch (queryString) {
case "xhr1":
response.setHeader("Set-Cookie", "xhr1=xhr_val1; path=/", false);
break;
case "xhr2":
response.setHeader("Set-Cookie", "xhr2=xhr_val2; path=/; HttpOnly", false);
break;
}
}
|