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