Issue
I am using iframe for payment page in an ionic application. after clicking submit (Senden) button inside the iframe:
A popup with browsers appear like this:
How can I prevent this popup from appearing?
I use targer="_self"
in the iframe. but it doesn't work.
Solution
I've removed allow-popups allow-top-navigation
from sandbox
attribute of the iframe
.
iframe before the fix:
<iframe #iframe id="iframe"
frameborder="0"
[src]="url"
style="width:100%; border:none;"
sandbox="allow-popups allow-top-navigation allow-presentation allow-scripts allow-pointer-lock allow-same-origin allow-forms">
</iframe>
iframe now:
<iframe #iframe id="iframe"
frameborder="0"
[src]="url"
style="width:100%; border:none;"
sandbox="allow-presentation allow-scripts allow-pointer-lock allow-same-origin allow-forms">
</iframe>
Answered By - Ahmed Abuamra
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.