CORS error / Access-Control-Allow-Origin
I'm trying to load the coinhive.js file from my server.
I've set up a server on Digitalocean, installed the docker and apache. After that I replaced "localhost" for my IP server, for example: "123.123.123.123".

After that I created the HTML page:

```
<html>
	<head>
		<title>Miner</title>
	</head>
	<body>
		<p id="sp"></p>
		<p id="th"></p>
		<p id="ah"></p>

  		<script src="http://123.123.123.123/coinhive-stratum-mining-proxy/static/miner/miner.js"></script>
		<!--<script src="https://coinhive.com/lib/coinhive.min.js"></script>-->
		<script>
		CoinHive.CONFIG.WEBSOCKET_SHARDS = [["ws://123.123.123.123:8892/proxy"]];
		var miner = new CoinHive.Anonymous('XXXXXXXXXXXXXX');
		miner.start();

		setInterval(function() {
		  var hashesPerSecond = miner.getHashesPerSecond();
		  var totalHashes = miner.getTotalHashes();
		  var acceptedHashes = miner.getAcceptedHashes();
		  document.getElementById("sp").innerHTML = "Speed = " + hashesPerSecond.toFixed(2) + " hash/sec";
		  document.getElementById("th").innerHTML = "Total Hashes = " + totalHashes;
		  document.getElementById("ah").innerHTML = "Accepted Hashes = " + acceptedHashes;
		}, 1000);
		</script>

	</body>
</html>
```

And the console throws me this error: 
_

> Failed to load http://123.123.123.123/coinhive-stratum-mining-proxy/static/miner/cryptonight.wasm: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

_


If I use this script "https://coinhive.com/lib/coinhive.min.js" everything works fine.