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