summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/preload/resources/cross-origin-module.py
blob: 35dce5401c56eeb6c52811307abcc57dc82c4ed9 (plain)
1
2
3
4
5
6
7
8
9
def main(request, response):
    headers = [
        (b"Content-Type", b"text/javascript"),
        (b"Access-Control-Allow-Origin", request.headers.get(b"Origin")),
        (b"Timing-Allow-Origin", request.headers.get(b"Origin")),
        (b"Access-Control-Allow-Credentials", b"true")
    ]

    return headers, u"// Cross-origin module, nothing to see here"