summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/common/security-features/subresource/referrer.py
blob: e36631479e60fab893de7e02d55a3f2ec2a32a15 (plain)
1
2
3
4
def main(request, response):
    referrer = request.headers.get(b"referer", b"")
    response_headers = [(b"Content-Type", b"text/javascript")]
    return (200, response_headers, b"window.referrer = '" + referrer + b"'")