1
0
Fork 0
firefox/testing/web-platform/tests/partitioned-popins/resources/partitioned-popins.request-header.initial.py
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

10 lines
No EOL
591 B
Python

from cookies.resources.helpers import setNoCacheAndCORSHeaders
def main(request, response):
# Step 3 (partitioned-popins/partitioned-popins.request-header.tentative.https.window.js)
message = b"Initial("
message += request.headers.get(b"Sec-Popin-Context", b"missing")
message += b")-"
headers = setNoCacheAndCORSHeaders(request, response)
headers.append((b'Location', b"/partitioned-popins/resources/partitioned-popins.request-header.http.py?message=" + message))
headers.append((b'Popin-Policy', b"partitioned=*"))
return 302, headers, b'{"redirect": true}'