Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

765
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda