summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/fetch/cross-origin-resource-policy/resources/hello.py
blob: 2b1cb84bad2de1835dff3e9997715300c6173272 (plain)
1
2
3
4
5
6
def main(request, response):
    headers = [(b"Cross-Origin-Resource-Policy", request.GET[b'corp'])]
    if b'origin' in request.headers:
        headers.append((b'Access-Control-Allow-Origin', request.headers[b'origin']))

    return 200, headers, b"hello"