News for hackers. Stuff that matters.
Re:How do dat:// sites interact with servers? by inglor on Wednesday June 13, 2018 @04:05AM (#17301208)
Sure you can, you can make any request you want without CORS, the content is just opaque to you (for example you can display an image but not manipulate its pixels).

You do this for example with `fetch('./any-resource', {mode: 'no-cors'})`.

You can then for example do a `.then(x => x.blob())` and then use the resulting blob as an image.

There are no comments on this comment yet.