summaryrefslogtreecommitdiffstats
path: root/netwerk/test/mochitests/reset_cookie_xhr.sjs
blob: 3620958d29c8d7fdaa2b8e59231a3b74e8bdc7cc (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 "set_cookie":
      response.setHeader("Set-Cookie", "testXHR1=xhr_val1; path=/", false);
      break;
    case "modify_cookie":
      response.setHeader(
        "Set-Cookie",
        "testXHR1=xhr_val2; path=/; HttpOnly",
        false
      );
      break;
  }
}