Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-09-11 17:31:43

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

loading external content in write tab

Here is another minor problem I found.

In many articles I include vimeo videos. Up to now they were not visible in the ‘preview’ tab in the ‘write’ pane. Now any html we have will actually render in the back end. I am worried regarding the safety of this. What if someone loads an swf application from a non-trusted third party for example, or even an image, svg, whatever.

I might just be paranoid about this but hopefully a plugin will be developed to change this functionality.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#2 2016-09-12 10:29:16

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,137
GitHub

Re: loading external content in write tab

Offline

#3 2016-09-12 12:03:07

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: loading external content in write tab

Hi Pete

the issue in github is from 2014. I was trying to implement an htaccess rule to block media from external sources but I then thought that the language files are also downloaded from outside the domain.

The links you posted are indeed interesting but what I was thinking was not myself but the average user who would not even try to understand all these.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#4 2016-09-12 12:18:40

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: loading external content in write tab

The default .htaccess in textpattern directory prevents your site from being embedded as a frame of other sites. Replace it with

<IfModule mod_headers.c>
    Header set Content-Security-Policy "frame-ancestors 'self'; child-src 'self'"
</IfModule>

to also block the frames from other sites in your site. But if we do it, average users might cry “where is my youtube video”.

Offline

#5 2016-09-12 12:19:40

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,137
GitHub

Re: loading external content in write tab

etc wrote #301363:

But if we do it, average users might cry “where is my youtube video”.

This.

Offline

#6 2016-09-12 12:39:37

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: loading external content in write tab

or they might cry “where is my site!”


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#7 2016-09-12 13:02:19

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: loading external content in write tab

Hi Oleg and Pete, thanks so much for this.

Unfortunately the htaccess script does not work. vimeo iframes are still loading. :(


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#8 2016-09-12 13:35:54

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: loading external content in write tab

colak wrote #301369:

Unfortunately the htaccess script does not work. vimeo iframes are still loading. :(

That’s another problem, CSP level 2 is not yet supported by IE, Edge and Safari 9.1. Working in Firefox for me.

Offline

#9 2016-09-12 15:41:31

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: loading external content in write tab

I’m also working on ff v48.0.1 mac


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#10 2016-09-12 17:34:47

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: loading external content in write tab

colak wrote #301378:

I’m also working on ff v48.0.1 mac

Ah..? Well, I’m just a poor boy, nobody buys me a mac :-) Will test when I can.

Offline

#11 2016-09-12 18:57:24

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,137
GitHub

Re: loading external content in write tab

etc wrote #301383:

Well, I’m just a poor boy, nobody buys me a mac :-)

www.ebay.fr/itm/APPLE-Imac-G3-/222241755188 (currently 1EUR plus shipping)

Offline

#12 2016-09-12 19:19:32

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: loading external content in write tab

gaekwad wrote #301387:

www.ebay.fr/itm/APPLE-Imac-G3-/222241755188 (currently 1EUR plus shipping)

Oh man, il le vaut bien !

Offline

Board footer

Powered by FluxBB