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