Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

768
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda