Skip to content

Update README.md with Usage and Testing #11

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,20 @@ For html2canvas >=v1.0.0 use >= v1.0.0 of this library.
var app = express();
app.use('/', proxy());

#### Usage ####

In HTML2Canvas do not use these configuration options (or set them to false):
* allowTaint
* useCors

You should use this HTML2Canvas option:
* proxy: '/'

('/' should be replaced with whatever url you used as your proxy url - see Example above)

#### Testing ####

You can check if your proxy is set up correctly like this:
* http://localhost/?url=https://yoururl.here

You should replace http://localhost/ with your own.