Question: why iframe is not secure?
Answer: Iframes Bring Security Risks. If you create an iframe, your site becomes vulnerable to cross-site attacks. You may get a submittable malicious web form, phishing your users' personal data. ... A malicious user can change the source site URL.