Traté de hacer un buscador de videos de YouTube usando iframe pero por alguna razón parece que no se está cargando.
Aquí está mi código:
<!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>¿Puede alguien por favor ayudarme a resolver este problema?