Skip to content

Commit

Permalink
f*** CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
ColaColin committed Mar 13, 2014
1 parent 73ef71a commit 42395ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/webapp/static/js/armycomposition.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ $(document).ready(function() {
function handleNewImageCase(x, y, z, spec, parsedColor, imgPath) {
var billBoard = addBillboard(x, y, z, spec, parsedColor);
var image = new Image();
image.crossOrigin = "anonymous"; // FUCK CORS
// TODO this introduces (?) a race condition that can lead to images being loaded multiple times
// should not affect program correctness apart from that though...
image.onload = function() {
Expand Down

0 comments on commit 42395ad

Please sign in to comment.