Strange situation #61

Closed
escobar1983 opened this Issue Feb 24, 2012 · 6 comments

Comments

Projects
None yet
3 participants
@escobar1983

I have instal new firefox 10.0.2 and html2canvas stop working. What i need to have instal to browser to working html2canvas..
For what reason I add " proxyUrl: "http://html2canvas.appspot.com/",?

@niklasvh

This comment has been minimized.

Show comment
Hide comment
@niklasvh

niklasvh Feb 24, 2012

Owner

If there are images hosted under a different origin (i.e. different domain, subdomain, protocol), then you will need a proxy to load them. You shouldn't use "http://html2canvas.appspot.com/" for production as it has very limited daily bandwidth and I may or may not restrict it for scripts at some point, so you should setup your own, if you need one.

Ideally, you would have the images under the same origin though.

Owner

niklasvh commented Feb 24, 2012

If there are images hosted under a different origin (i.e. different domain, subdomain, protocol), then you will need a proxy to load them. You shouldn't use "http://html2canvas.appspot.com/" for production as it has very limited daily bandwidth and I may or may not restrict it for scripts at some point, so you should setup your own, if you need one.

Ideally, you would have the images under the same origin though.

@escobar1983

This comment has been minimized.

Show comment
Hide comment
@escobar1983

escobar1983 Feb 24, 2012

How to setup my one proxy ?

How to setup my one proxy ?

@niklasvh

This comment has been minimized.

Show comment
Hide comment
@niklasvh

niklasvh Feb 24, 2012

Owner

That depends on your system, the one I use is written in Python and is available here:
https://github.com/niklasvh/html2canvas-proxy

and it can be deployed to AppSpot. You can however code one in what ever language you want, just use same input/output model as that proxy does (yes, I am aware there is no actual documentation on it)

Owner

niklasvh commented Feb 24, 2012

That depends on your system, the one I use is written in Python and is available here:
https://github.com/niklasvh/html2canvas-proxy

and it can be deployed to AppSpot. You can however code one in what ever language you want, just use same input/output model as that proxy does (yes, I am aware there is no actual documentation on it)

@escobar1983

This comment has been minimized.

Show comment
Hide comment
@escobar1983

escobar1983 Feb 24, 2012

Ok so i soulf put it on my domain in some directory and then put the url to it on ProxyURL ? Only to directory or specifie file? Please write me how to do it :)

Ok so i soulf put it on my domain in some directory and then put the url to it on ProxyURL ? Only to directory or specifie file? Please write me how to do it :)

@ghrab

This comment has been minimized.

Show comment
Hide comment
@ghrab

ghrab Mar 22, 2012

Hello, could you please provide more details on how to use the proxy plugin ?
Thanks.

ghrab commented Mar 22, 2012

Hello, could you please provide more details on how to use the proxy plugin ?
Thanks.

@ghrab

This comment has been minimized.

Show comment
Hide comment
@ghrab

ghrab Mar 29, 2012

I had my question answered here : niklasvh/html2canvas-proxy#2
Thanks !

ghrab commented Mar 29, 2012

I had my question answered here : niklasvh/html2canvas-proxy#2
Thanks !

@niklasvh niklasvh closed this Apr 26, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment