blob: 19855bfec97c249198629c03b9116251b3a781c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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;
}
}
|