summaryrefslogtreecommitdiffstats
path: root/netwerk/cookie/test/browser/sameSite.sjs
diff options
context:
space:
mode:
Diffstat (limited to 'netwerk/cookie/test/browser/sameSite.sjs')
-rw-r--r--netwerk/cookie/test/browser/sameSite.sjs7
1 files changed, 7 insertions, 0 deletions
diff --git a/netwerk/cookie/test/browser/sameSite.sjs b/netwerk/cookie/test/browser/sameSite.sjs
new file mode 100644
index 0000000000..a19624d2cb
--- /dev/null
+++ b/netwerk/cookie/test/browser/sameSite.sjs
@@ -0,0 +1,7 @@
+function handleRequest(aRequest, aResponse) {
+ aResponse.setStatusLine(aRequest.httpVersion, 200);
+
+ aResponse.setHeader("Set-Cookie", "a=1", true);
+ aResponse.setHeader("Set-Cookie", "b=2; sameSite=none", true);
+ aResponse.setHeader("Set-Cookie", "c=3; sameSite=batman", true);
+}