CORS isn't supported to localhost, aka you can't do that; hence the image-size hack
If you have an open local server running this will detect it.
http://http.jameshfisher.com/2019/05/26/i-can-see-your-local...
I still don't fully understand _why_ they had to do this hack if they own the localhost server. They could just set CORS to be '*' and lax their CSP. Then they would be able to get data with JS.
For example this website can see any localserver on your network with open CORS since it appears they laxed their CSP.
http://http.jameshfisher.com/2019/05/26/i-can-see-your-local...