Pages

Monday, 22 April 2013

IFrame Security Fix - Same Origin

To fix the 'same origin' issue on modern browsers you need to give the iframe permissions through the 'sandbox' attribute.

Example

<iframe sandbox="allow-same-origin allow-scripts allow-popups allow-forms"...


Link:

http://www.html5rocks.com/en/tutorials/security/sandboxed-iframes/

No comments:

Post a Comment