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