Sign in
chromium
/
chromium
/
src
/
3a4922a8bff5719beeb731a39878047e258245d1
/
.
/
third_party
/
blink
/
web_tests
/
external
/
wpt
/
content-security-policy
/
support
/
echo-policy.py
blob: 3a4b2f3d2e53eb2bdb8fd67263ac52849aad237e [
file
]
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>"