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