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