Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

764
Views
Error with Permissions-Policy header: Unrecognized feature: 'interest-cohort'. Error while trying to add an ID attribute to a button JavaScript

So, I wanted to execute some JavaScript into my Android app that is in Java, but when testing the JavaScript that has to run; in the Chrome Console (Ctrl-Shift-J), I get the following error:

Error with Permissions-Policy header: Unrecognized feature: 'interest-cohort'.

The site is chess.com, and the error occurs when I run the following code:

document.body.innerHTML = document.body.innerHTML.replace(`<button type="button" class="ui_v5-button-component ui_v5-button-primary ui_v5-button-large ui_v5-button-full">
Play
</button>`, `<button type="button" id="jhghjikjhgbjinb" class="ui_v5-button-component ui_v5-button-primary ui_v5-button-large ui_v5-button-full">
Play
</button>`);

What I'm trying to do is access the "Play" button on this site and click it. Is there any other way to do the same? I tried using document.getElementsByClassName(), but how can I change the website's content?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

interest-cohort permissions policy enables a site to declare that it does not want to be included in the user's list of sites for cohort calculation https://web.dev/floc/.

You can check if any content security policies (CSP) are enabled in the site.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!