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