I have an iframe directive and when the page load, I get a cross domain 
access denied. Is there a way to configure in Angular to by pass cross 
domain e.g. $sce.trustAsResourceUrl ?

HTML:

JS:

$scope.page = { url: 'SOME CROSS DOMAIN', trustSrc: function(src) { return 
$sce.trustAsResourceUrl(src); } }

Error:

Uncaught SecurityError: Failed to read the 'contentDocument' property from 
'HTMLIFrameElement':

Blocked a frame with origin "http://localhost:8080"; from accessing a frame 
with origin

Protocols, domains, and ports must match.

StackOverflow:
http://stackoverflow.com/questions/30586379/securityerror-failed-to-read-the-contentdocument-property-from-htmliframeele

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to