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

@ -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 &lt;base&gt; href)</h1>
<img src="/logos/2011/gregormendel11-res.jpg" />
<img src="/assets/image_1.jpg" />
</body>
</html>

View File

@ -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>