Sign in
chromium
/
external
/
Webkit
/
master
/
.
/
LayoutTests
/
http
/
tests
/
security
/
contentSecurityPolicy
/
resources
/
sandboxed-eval.php
blob: f379700342384c7adf5830edb7f515eb508f9f4b [
file
] [
log
] [
blame
]
<?
php
header
(
"Content-Security-Policy: sandbox allow-scripts"
);
?>
<script>
alert
(
'PASS (1/2): Script can execute'
);
</script>
<script>
eval
(
"alert('PASS (2/2): Eval works')"
);
</script>
Done.