servo/tests/wpt/web-platform-tests/content-security-policy/support/echo-policy.py

3 lines
190 B
Python

def main(request, response):
policy = request.GET.first("policy");
return [("Content-Type", "text/html"), ("Content-Security-Policy", policy)], "<!DOCTYPE html><title>Echo.</title>"