July 12, 2021

How to avoid redirect when using iframe tag?

Use sandbox attribute.

<iframe src="Site_URL" sandbox=""> - Full Protection.

<iframe src="Site_URL"  sandbox="allow-forms allow-scripts"> - Allow form submission and scripts to run.

No comments:

Post a Comment