-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Content from crossdomain iframe empty? #34
Comments
Hey thanks, I am glad the directive is coming handy. As far as your question, I do not know much about this issue, but did fine this on SO -> http://stackoverflow.com/questions/4324108/unsafe-javascript-attempt-to-access-frame-with-url It may help, if it does not, you may want to see if you can proxy the request through your frontend.com so that both the parent and frame are from the same domain. Thanks Tom |
Thank you for your quick reply. I also discovered a minor bug. form.parent().append(iframe);
iframe.bind('load', function () {... it works as it should. Cheers! |
Thanks for the bug report, should be fixed now in 0.3.7. |
Hello,
first of all, thanks for that great module. Really makes life easier!
However I have some trouble retrieving the content from the iframe. The thing is that my application is talking to a RESTful PHP backend on a different domain. For all the ajax calls I use
withCredentials = true
.So when I name that same backend for the action inside my form the iframe is populated with the correct contents but they can't be retrieved because of this error:
To avoid this I already tried to redirect the whole request to a php file on the frontend domain which then saves the file and sends a new request to the backend. But with this method my sessions on the backend are not there anymore.
I'd appreciate any help.
Kind regards,
Denyo
The text was updated successfully, but these errors were encountered: