1
0
Fork 0
firefox/testing/web-platform/tests/xhr/resources/access-control-allow-with-body.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

15 lines
476 B
Python

def main(request, response):
headers = {
b"Cache-Control": b"no-store",
b"Access-Control-Allow-Headers": b"X-Requested-With",
b"Access-Control-Max-Age": 0,
b"Access-Control-Allow-Origin": b"*",
b"Access-Control-Allow-Methods": b"*",
b"Vary": b"Accept-Encoding",
b"Content-Type": b"text/plain"
}
for (name, value) in headers.items():
response.headers.set(name, value)
response.content = b"PASS"