Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
Re: loading external content in write tab
Look into content security policy:
content-security-policy.com
developer.mozilla.org/en-US/docs/Web/Security/CSP/Using_Content_Security_Policy
There’s already something in the issue queue, too: github.com/textpattern/textpattern/issues/408
Offline
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
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
Re: loading external content in write tab
Offline
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
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
Offline
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
Offline
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
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