cookiesDemo
Script
v18
Fork
1
2
3
4
5
6
7
8
9
10
export
let
cookiesDemo
=
(
req
)
=>
new
Response
(
`<h1>Cookie Playground</h1>
<pre>
${
req
.
headers
.
get
(
'cookie'
)
}
</pre>
`
,
{
headers
:
{
"Content-Type"
:
"text/html"
,
"Set-Cookie"
:
`hi there friendlkajsfdljkasdfas=dfasf=asdfalskdfjalsfjasldkfj`
,
}
}
)