springrts.com CSP is blocking imgur as a source

springrts.com CSP is blocking imgur as a source

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

springrts.com CSP is blocking imgur as a source

Post by Forboding Angel »

Primer on CSP for anyone who cares: https://dev.to/mattferderer/what-is-csp ... bsite-28df

Basically imgur links here will show up as broken due to imgur not being allowed as a source. Perhaps consider allowing google through as well.
broken.png
broken.png (1.95 KiB) Viewed 5252 times
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: springrts.com CSP is blocking imgur as a source

Post by abma »

thats by intention:
- spam bots are embedding images from external pages.
- privacy
- external services randomly disappear
- springrts.com is backed up
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: springrts.com CSP is blocking imgur as a source

Post by Forboding Angel »

It's pretty short sighted to think that anyone will happily use the forum uploader. This effectively causes conversation to be less productive. Sure you CAN upload to the forum, but that is literally the least desirable method.

If you want to embed an image properly on the forum you have to attach it, click place inline. Post, right click to get attachment link, remove attachment line, place image link in image tags.
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: springrts.com CSP is blocking imgur as a source

Post by Silentwings »

you have to attach it, click place inline. Post, right click to get attachment link, remove attachment line, place image link in image tags
Actually you can just:

upload, right click filename -> copy link location, paste inside image tag.
sprunk
Posts: 100
Joined: 29 Jun 2015, 07:36

Re: springrts.com CSP is blocking imgur as a source

Post by sprunk »

abma wrote: 02 Dec 2018, 18:10 thats by intention:
- privacy
How does it improve privacy? Sounds like an argument in favour of having the upload-to-forum option, but not against having an host-out-of-forum option.
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: springrts.com CSP is blocking imgur as a source

Post by very_bad_soldier »

Relying on external image hosting providers is pretty bad. They are out of your control. I hate it alot in other forums when browsing two year old threads and all those images are gone cause some random image hoster decided to go out of existence.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: springrts.com CSP is blocking imgur as a source

Post by Forboding Angel »

Silentwings wrote: 03 Dec 2018, 08:17
you have to attach it, click place inline. Post, right click to get attachment link, remove attachment line, place image link in image tags
Actually you can just:

upload, right click filename -> copy link location, paste inside image tag.
If you do that, unless phpbb fixed something, the image will take forever to load. Forum has been updated several times since this was an issue, so I have no idea if it's still a problem (the link you got was not a direct link to the file).

Let's test
Image
Attachments
6cb8b510512acef-a-nw-p.jpg
(27.8 KiB) Not downloaded yet
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: springrts.com CSP is blocking imgur as a source

Post by gajop »

I feel like we've taken two steps back. The attach-image & right-click method Silentwings outlined seems so unintuitive I'll need to save these instructions somewhere.

Spam bots are only visible to mods/admins and they should be dealt with by using proper antispam techniques.

EDIT: And I don't want the "attachment" to be appear in the bottom, so now I have to delete that? What happens if I delete an attachment but an image points there? Well let's see here: viewtopic.php?f=90&t=38465&p=589043#p589043
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: springrts.com CSP is blocking imgur as a source

Post by Silentwings »

Teabag seems to have a found a way to make an attachment display as an image, without showing an "extra" attachments bit, but I don't know how he did it...

viewtopic.php?f=11&t=38597#p589046
hokomoko
Spring Developer
Posts: 593
Joined: 02 Jun 2014, 00:46

Re: springrts.com CSP is blocking imgur as a source

Post by hokomoko »

I'm a bit upset that it broke a bunch of images in existing threads.
raaar
Metal Factions Developer
Posts: 1094
Joined: 20 Feb 2010, 12:17

Re: springrts.com CSP is blocking imgur as a source

Post by raaar »

apparently it even blocks https links from springfiles, like this

https://springfiles.com/sites/default/f ... chroma.jpg

grrrr....
Post Reply

Return to “General Discussion”