patcg-individual-drafts / topics

The Topics API
https://patcg-individual-drafts.github.io/topics/
Other
607 stars 214 forks source link

Attestation check for Topics on https://example.com/ failed #301

Open gaurav-1302 opened 6 months ago

gaurav-1302 commented 6 months ago

Hi, I am trying to access the topics on my production website using the following javascript code.

     async function fetchIntrest(){
         const topics = await document.browsingTopics();
         console.log(topics)
      }
      fetchIntrest();

I have also included the <meta http-equiv="Feature-Policy" content="browsing-topics *"> Header in my page but getting the following error

Attestation check for Topics on https://www.atirun.com/ failed. (index):506 
[]

And an empty array is returned. Guide me to resolve this error and access users browsingTopics through my website.

xyaoinum commented 2 months ago

Hi @gaurav-1302,

The Topics caller (in your case, https://www.atirun.com) needs to be enrolled for Privacy Sandbox.