patcg-individual-drafts / topics

The Topics API

Home Page:https://patcg-individual-drafts.github.io/topics/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

gaurav-1302 opened this issue · comments

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.

Hi @gaurav-1302,

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