summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/content-security-policy/support/echo-policy.py
blob: 3a4b2f3d2e53eb2bdb8fd67263ac52849aad237e (plain)
1
2
3
def main(request, response):
    policy = request.GET.first(b"policy")
    return [(b"Content-Type", b"text/html"), (b"Content-Security-Policy", policy)], b"<!DOCTYPE html><title>Echo.</title>"