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: 14436
Joined: 17 Nov 2005, 02:43

springrts.com CSP is blocking imgur as a source

Post by Forboding Angel » 30 Nov 2018, 23:49

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 317 times
2 x

abma
Spring Developer
Posts: 3495
Joined: 01 Jun 2009, 00:08

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

Post by abma » 02 Dec 2018, 18:10

thats by intention:
- spam bots are embedding images from external pages.
- privacy
- external services randomly disappear
- springrts.com is backed up
2 x

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

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

Post by Forboding Angel » 03 Dec 2018, 01:29

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.
2 x

User avatar
Silentwings
Moderator
Posts: 3450
Joined: 25 Oct 2008, 00:23

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

Post by Silentwings » 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.
1 x

sprunk
Posts: 80
Joined: 29 Jun 2015, 07:36

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

Post by sprunk » 03 Dec 2018, 11:59

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.
1 x

User avatar
very_bad_soldier
Posts: 1334
Joined: 20 Feb 2007, 01:10

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

Post by very_bad_soldier » 03 Dec 2018, 13:10

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.
1 x

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

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

Post by Forboding Angel » 03 Dec 2018, 13:12

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
1 x

gajop
Moderator
Posts: 2984
Joined: 05 Aug 2009, 20:42

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

Post by gajop » 04 Dec 2018, 15:26

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
1 x

User avatar
Silentwings
Moderator
Posts: 3450
Joined: 25 Oct 2008, 00:23

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

Post by Silentwings » 04 Dec 2018, 21:18

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
1 x

hokomoko
Spring Developer
Posts: 533
Joined: 02 Jun 2014, 00:46

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

Post by hokomoko » 10 Dec 2018, 18:57

I'm a bit upset that it broke a bunch of images in existing threads.
3 x

raaar
Metal Factions Developer
Posts: 745
Joined: 20 Feb 2010, 12:17

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

Post by raaar » 15 Dec 2018, 09:58

apparently it even blocks https links from springfiles, like this

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

grrrr....
1 x

Post Reply

Return to “General Discussion”