Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gaurav-1302 opened this issue Apr 3, 2024 · 1 comment
Open

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

gaurav-1302 opened this issue Apr 3, 2024 · 1 comment

Comments

@gaurav-1302
Copy link

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
Copy link
Collaborator

Hi @gaurav-1302,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants