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?