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

126
Vistas
Is there a way to make an iframe YouTube browser?

I tried to make a YouTube video searcher using iframe but for some reason it doesn't seem to be loading.

Here's my code:

<!DOCTYPE html>
<html>
  <head>
    <httpProtocol>
      <customHeaders>
        <add name="X-Frame-Options" value="SAMEORIGIN" />
        <add name="Content-Security-Policy" value="frame-ancestors https://www.<preferredwebsitedomain>.com" />
      </customHeaders>
    </httpProtocol>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>Youtube Browser</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
  </head>
  <body>
    <form action="http://www.youtube.com/results" method="get" target="iframe">
      <input id="search_query" type="text"/>
      <input type="submit"/>
    </form> 
    <iframe name="iframe"></iframe>
  </body>
</html>

Can someone please help me solve this issue?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

It seems you won't be able to :

"Refused to display 'https://www.youtube.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'."

The Youtube server X-Frame-Options only allows for sameorigin.

More info about that subject here

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