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

How do I use html2canvas proxy #3

Open
leonidas87 opened this issue May 25, 2013 · 1 comment
Open

How do I use html2canvas proxy #3

leonidas87 opened this issue May 25, 2013 · 1 comment

Comments

@leonidas87
Copy link

Hey,

So in html2canvas.js i set

            // preload options
            proxy: 'proxy.js',
            timeout: 0,    // no timeout
            useCORS: false, // try to load images as CORS (where available), before falling back to proxy
            allowTaint: false, //

And in proxy.js (node.js proxy) What do I set here

var url, http, request;
url = require('url');
http = require('http');
request = require('request');

I am running on my local host and I am using html2canvas to capture cross-domain homepage screenshots.

I keep getting this error

html2canvas.js:359
2
Blocked a frame with origin "http://localhost" from accessing a frame with origin "http://money.rediff.com". Protocols, domains, and ports must match. html2canvas.js:359
Uncaught ReferenceError: require is not defined proxy.js:10
(anonymous function)

Please help.

@ymorin007
Copy link

Did you found a solution because I'm having the same question.

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

2 participants