Search…

X3 Photo Gallery Support Forums

Search…
 
buzibuzi
Topic Author
Posts: 5
Joined: 07 Nov 2016, 11:52

unable to save iframe error textstatus:error

07 Nov 2016, 12:16

Hi, 
when trying to add an iframe to  a  page content. 

Code
<div class='flex-video widescreen x3-style-frame'>
 <iframe src='//www.youtube.com/embed/A3PDXmYoF5U' frameborder='0' allowfullscreen></iframe>
</div>
when saving , an error appears:
error -> textstatus:error

it seems the iframe is causing this, because when removing it, the page is saved fine.
any ideas why ? how to solve this ?
Thanks
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: unable to save iframe error textstatus:error

07 Nov 2016, 23:09

buzibuzi wrote:it seems the iframe is causing this, because when removing it, the page is saved fine.
any ideas why ? how to solve this ?
This is almost certainly a "rule" in your host/server firewall implementation (likely mod_security). It would be logical from a security-perspective to block <iframe> tags from POST requests to your server, as iframe's could include malicious content. This however has no benefit of course for your X3 Panel, where only you or people you trust has access ...

You could ask your host to disable the firewall (or some rules), from below your /panel/ URL segment.

The only other option would be to create "hacks" in X3 to generate correct <iframe> html code from a fake placeholder (for example <div class=iframe> ) ... We already did something similar to <input>, which was blocked on some other servers firewall. However, this is undesirable for reasons needless to mention.
 
buzibuzi
Topic Author
Posts: 5
Joined: 07 Nov 2016, 11:52

Re: unable to save iframe error textstatus:error

08 Nov 2016, 01:51

thanks for your reply
i'll try your suggestion.