summaryrefslogtreecommitdiffstats
path: root/test/wpt/tests/xhr/resources/access-control-basic-allow.py
blob: f1ca5875e260cde272d72ce9b2ff1d77efecccd9 (plain)
1
2
3
4
5
6
def main(request, response):
    response.headers.set(b"Content-Type", b"text/plain")
    response.headers.set(b"Access-Control-Allow-Credentials", b"true")
    response.headers.set(b"Access-Control-Allow-Origin", request.headers.get(b"origin"))

    response.content = b"PASS: Cross-domain access allowed."