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

121
Vistas
How i can fix ... 'postMessage' on 'DOMWindow':.. error

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('file://') does not match the recipient window's origin ('null').

How to fix my problem? I looked at the answers to this question on the forum but could not solve the problem.

<script type="text/javascript">
    const api = 'AIzaSyAZaaaXmvFvvvWkZ2bfffbz1oCAqvgSVOGYg'; // Specify your api key here

    // Load API library
    function onLoad() {
        if (api) {
            gapi.client.load('youtube', 'v3', loadYouTubeApi);
        } else {
            document.getElementById('output').innerHTML += 'API key has not been specified!';
        }
    }

    // Set API Key
    function loadYouTubeApi() {
        gapi.client.setApiKey(api);
        search('sitepoint');
    }

    // Call the search.list()
    function search(queryTerm) {
        let request = gapi.client.youtube.search.list({
            part: 'id',
            q: queryTerm
        });
        // Execute the request call and output it in HTML view
        request.execute((response) => {
            const responseString = JSON.stringify(response, '', 2);
            document.getElementById('output').innerHTML += responseString;
        })
    }
</script>
<script src="https://apis.google.com/js/client.js?onload=onLoad" type="text/javascript"></script>
about 4 years ago · Juan Pablo Isaza
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