patcg-individual-drafts / topics

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

Topics API - feature overrides based on etld+1 ? #326

Closed relevance-api-topics closed 1 month ago

relevance-api-topics commented 1 month ago

Hi experts, we are having trouble to fetching topics for the below case:

Is anything missed from our side, or this is an issue to update? Thanks!

xyaoinum commented 1 month ago

Both the observation and the enrollment rely on etld+1.

Adding test.com to chrome://flags/#privacy-sandbox-enrollment-overrides should be sufficient for your case. Also, calling fetch('https://server1.region.test.com', {browsingTopics: true}) should produce the same results as calling document.browsingTopics() within a frame on https://server1.region.test.com.

Are you seeing differences between these two methods, or are neither working as expected? It would be helpful if you could provide detailed reproduction steps. If possible, please consider filing a bug report.