blob: 86de148321d15b38a52cf1a0562de617e1633327 [file] [log] [blame]
// Create an anonymous iframe. The new document will execute any scripts sent
// toward the token it returns.
const newAnonymousIframe = (child_origin) => {
const sub_document_token = token();
let iframe = document.createElement('iframe');
iframe.src = child_origin + executor_path + `&uuid=${sub_document_token}`;
iframe.anonymous = true;
document.body.appendChild(iframe);
return sub_document_token;
};