Skip to content
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

is there a way to capture iframe content ? #487

Closed
AviYafe opened this issue Dec 16, 2014 · 5 comments
Closed

is there a way to capture iframe content ? #487

AviYafe opened this issue Dec 16, 2014 · 5 comments

Comments

@AviYafe
Copy link

AviYafe commented Dec 16, 2014

i saw in the limitation that we can't capture iframe of html. but i wonder is there a way to overcome this issue in any other way .

thanks, Avi

@mudcube
Copy link

mudcube commented Dec 23, 2014

See:
#376
http://html2canvas.hertzen.com/documentation.html

You could theoretically capture the contents of a local iframe, but not a window with an iframe embedded. It's non-trivial to add, but imagine the feature will be re-integrated at some point.

@niklasvh
Copy link
Owner

0.5 will support rendering same origin iframes, example:
https://github.com/niklasvh/html2canvas/blob/master/tests/cases/iframe.html

@kafee651
Copy link

Is there any cross origin iframe capture?

@hkalex
Copy link

hkalex commented Sep 26, 2019

We are having the same problem that we would like to capture the image inside an iframe from different domains. We tried the subdomain and it is not working :( so any cross origin iframe capture solution?

@niklasvh
Copy link
Owner

Cross origin iframes are not possible due to browser security restrictions. You will need a proxy to download the get the contents to the same origin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants