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