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

338
Vistas
How to resolve the "Verify the message's origin in this cross-origin communication" vulnerability in sonarqube.?

My project runs the sonarqube scan for each build.

In the line self.addEventListener, I have the "Verify the message's origin in this cross-origin communication." vulnerability in scan results.

My application is getting loaded in an iframe.

The code snippet is as follows:-

self.addEventListener("message", function(e) {
    switch (e.data.cmd) {
        case "init":
            _initializeTimer(e.data.timeIntervalInSec);
            break;
        case "resetTimer":
            clearTimeout(self.sessionTimer);
            _initializeTimer(e.data.timeIntervalInSec);
            break;
        default:
            self.postMessage({
                status: "error",
                info: "please send a valid command"
            });
            break;
    }

What is the potential cause of this vulnerability ?

How can I resolve this ?

about 4 years ago · Santiago Gelvez
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