Sign in
nest-open-source
/
manifest_repos
/
chromium_src
/
1389d67935ffbffe8a70c1fa06867f6cf7ecf464
/
.
/
chromium
/
src
/
third_party
/
blink
/
web_tests
/
external
/
wpt
/
content-security-policy
/
support
/
echo-policy.py
blob: 3a4b2f3d2e53eb2bdb8fd67263ac52849aad237e [
file
] [
log
] [
blame
]
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>"