summaryrefslogtreecommitdiffstats
path: root/devtools/client/netmonitor/test/sjs_set-cookie-same-site.sjs
blob: b21dcddbcd6eebcb9655400669c8636c9f074432 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Any copyright is dedicated to the Public Domain.
   http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";

function handleRequest(request, response) {
  response.setStatusLine(request.httpVersion, 200, "Och Aye");

  response.setHeader("Set-Cookie", "foo=bar; SameSite=Lax");

  response.write("Hello world!");
}