summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/xhr/resources/access-control-basic-allow-no-credentials.py
blob: e0668c67a19b72f2d74034dbaa8e745f258ec556 (plain)
1
2
3
4
5
def main(request, response):
    response.headers.set(b"Content-Type", b"text/plain")
    response.headers.set(b"Access-Control-Allow-Origin", request.headers.get(b"origin"))

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