mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Add support for loading cross origin images using proxy
This commit is contained in:
@ -9,13 +9,13 @@
|
||||
font-family: Arial;
|
||||
}
|
||||
</style>
|
||||
<base href="http://www.google.com/" />
|
||||
<base href="http://localhost:8081/" />
|
||||
</head>
|
||||
<body>
|
||||
<h1>External image</h1>
|
||||
<img src="http://www.google.com/logos/2011/gregormendel11-hp.jpg" style="border:5px solid black;" />
|
||||
<img src="http://localhost:8081/assets/image2.jpg" style="border:5px solid black;" />
|
||||
|
||||
<h1>External image (using <base> href)</h1>
|
||||
<img src="/logos/2011/gregormendel11-res.jpg" />
|
||||
<img src="/assets/image_1.jpg" />
|
||||
</body>
|
||||
</html>
|
||||
|
@ -15,6 +15,6 @@
|
||||
</head>
|
||||
<body>
|
||||
<h1>External image (CORS)</h1>
|
||||
<img src="http://localhost:8081/tests/assets/image2.jpg" />
|
||||
<img src="http://localhost:8081/cors/tests/assets/image2.jpg" />
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user