var c=async({url:n,requestDomain:i})=>{let r=await fetch(n),t=r.headers.get("X-Frame-Options");if(t==="DENY"||t==="SAMEORIGIN")return!1;let s=r.headers.get("content-security-policy");if(!s)return!0;let e=s.match(/frame-ancestors\s+([\s\S]+?)(?=;|$)/i);return!!(e&&(e[1]==="*"||e[1].split(/\s+/).includes(i)))};export{c as a};
