Source code

Revision control

Copy as Markdown

Other Tools

<html>
<head>
<title>CSP frame-ancestors Violation Test
</title>
<base href="https://evil.com/">
</head>
<body>
</body>
<script>
"use strict";
window.violate = () => {
const iframe = document.querySelector("iframe");
const src = iframe.src;
iframe.src = "";
requestAnimationFrame(() => {
iframe.src = src;
});
};
</script>
</html>