@SunstonePhoenix @WynnDawnstrider @TwoPuffins
I know what's going on! Regrettably, it's not a bug.
TwoPuffins' two screenshots were the key. There's a reference to a "Cross-Origin Request Blocked". That's the same CORS issue that prevents us from using FR resources directly.
A very short, functional explanation of CORS is that when I ask for an image, the browser says "hey Discord/Imgur/FlightRising, where am I allowed to use this?". FlightRising (and apparently Discord, but only part of Discord) say "Nowhere but my own site, please!", and we respect that. Meanwhile, Imgur (and a different part of Discord) say "Oh, I'm down to share with anyone!"
CORS control is extremely valuable; it makes it harder to do things like spoof sites. It's also a huge pain in the bum for specific projects like this. Discord having CORS enabled for some things but not others is...disappointing but not surprising? There's a trend of becoming more and more of a pain to work with (rest in peace discord.py, APNGs, like half the API...).
The part of Discord that works, as discovered by TwoPuffins:
HOWEVER, knowing this is partial support (and me not knowing how long this has been the case for), I'm a little leery now of using Discord as a psuedo-image-host in a longterm sense. It may have never been their intent. Imgur is specifically an image host, though, so it should be safe.
I know what's going on! Regrettably, it's not a bug.
TwoPuffins' two screenshots were the key. There's a reference to a "Cross-Origin Request Blocked". That's the same CORS issue that prevents us from using FR resources directly.
A very short, functional explanation of CORS is that when I ask for an image, the browser says "hey Discord/Imgur/FlightRising, where am I allowed to use this?". FlightRising (and apparently Discord, but only part of Discord) say "Nowhere but my own site, please!", and we respect that. Meanwhile, Imgur (and a different part of Discord) say "Oh, I'm down to share with anyone!"
CORS control is extremely valuable; it makes it harder to do things like spoof sites. It's also a huge pain in the bum for specific projects like this. Discord having CORS enabled for some things but not others is...disappointing but not surprising? There's a trend of becoming more and more of a pain to work with (rest in peace discord.py, APNGs, like half the API...).
The part of Discord that works, as discovered by TwoPuffins:
Quote:
Okay, no, it works, but only if I copy the image link from the discord preview when I click on the image (using the desktop app btw), but not if I open the original (where it pops up in browser, or from just the image in the message without clicking on it to center it/focus/idk what I'm talking about but yeah. Happens with all images I try.
HOWEVER, knowing this is partial support (and me not knowing how long this has been the case for), I'm a little leery now of using Discord as a psuedo-image-host in a longterm sense. It may have never been their intent. Imgur is specifically an image host, though, so it should be safe.