Add support for loading cross origin images using proxy

This commit is contained in:
Niklas von Hertzen
2017-09-04 23:36:19 +08:00
parent c2b7ed9c42
commit aa47a3a3a6
10 changed files with 122 additions and 17 deletions

View File

@ -118,6 +118,7 @@ const assertPath = (result, expected, desc) => {
.html2canvas(testContainer.contentWindow.document.documentElement, {
removeContainer: true,
backgroundColor: '#ffffff',
proxy: 'http://localhost:8081/proxy',
...(testContainer.contentWindow.h2cOptions || {})
})
.then(canvas => {