javascript - Iframe sandboxing with 'allow-same-origin' flag error -
can please provide me more information on error , how 'allow-same-origin' flag works? getting following error in chrome iframe sandboxing:
uncaught securityerror: failed read 'contentdocument' property 'htmliframeelement': sandbox access violation: blocked frame @ "http://192.168.0.169" accessing frame @ "http://192.168.0.169". frame being accessed sandboxed , lacks "allow-same-origin" flag.
i little confused why need 'allow-same-origin' flag when frame 192.168.0.169 accessing frame same ip address. thank much.
you have sandbox attribute in iframe:
the sandbox attribute enables set of restrictions content in iframe, , whitelist of enabled permissions,
so either remove attribute, or edit fit permissions need.
optional permissions found here: https://developer.mozilla.org/en-us/docs/web/html/element/iframe
and more info here: http://www.html5rocks.com/en/tutorials/security/sandboxed-iframes/
Comments
Post a Comment