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