blob: b07066f4e28db07045a6334f329868d06c1ce5e9 [file] [log] [blame]
<!DOCTYPE html>
<html>
<title>page with frame csp</title>
<script>
function addIframe() {
const frame = document.createElement('iframe');
frame.name = 'added-by-page';
frame.src = `http://cross-origin.com:${location.port}` +
'/extensions/csp/success.html';
frame.onload = () => { window.domAutomationController.send(true); };
document.body.appendChild(frame);
}
</script>
</html>