phpmyfaq in iframe

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
yosterroaster
Posts: 2
Joined: Wed Jan 24, 2018 5:50 am

phpmyfaq in iframe

Post by yosterroaster »

I tried to access my faq via an iFrame

Code: Select all

 URL:= '<iframe src="' + aURL + '" width="' + itoa(htmlFrame.width) + '" height="' + itoa(htmlFrame.height) + '"></iframe>';
and I get "Access Denied"

I can access some other sites with this code, but it doesn't work with:

http://faq-data.com/simplelandlord

Is there something I can do to make this work?
BTW I am using GoDaddy if that makes a difference.

Thanks,
Rob
Thorsten
Posts: 15373
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpmyfaq in iframe

Post by Thorsten »

Hi,

yes, we use a frame buster script to avoid running phpMyFAQ in an iFrame.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
yosterroaster
Posts: 2
Joined: Wed Jan 24, 2018 5:50 am

Re: phpmyfaq in iframe

Post by yosterroaster »

Is there a way around this?

I want to call my faq from my website.

My faq runs on a linux server with the domain faq-data.com

My web site is simple-landlord.com

So they are different domains, but I really need a way to make this work.

Thanks,
Rob
Thorsten
Posts: 15373
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpmyfaq in iframe

Post by Thorsten »

Hi,

you can remove the frame buster code in index.tpl

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
sipherion
Posts: 1
Joined: Fri Nov 16, 2018 2:55 pm

Re: phpmyfaq in iframe

Post by sipherion »

Hi Thorsten,

Would it be possible to add this as an option ?
For my admin story, I'm developping a complete Intranet for my compagny and phpMyFAQ is, with OTRS and other open sources projects, used by some people, and I need them to work only into this intranet. In OTRS, there is an option that says "Allow iframes" and some security warnings and while you don't enable this option, OTRS won't work in an iframe (default). The same should be great, I understand the security risks but in my case this is for an internal business compagny, not for dangerous Internet.
Thorsten
Posts: 15373
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpmyfaq in iframe

Post by Thorsten »

Hi,

I could add this in the upcoming 3.0 release if you wish that.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
onetouchdesign
Posts: 1
Joined: Tue Jun 16, 2020 10:24 pm

Re: phpmyfaq in iframe

Post by onetouchdesign »

I want to run phpmyfaq in an iframe. I am using version 3.0, how can I set it up to work correctly?
Thorsten
Posts: 15373
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpmyfaq in iframe

Post by Thorsten »

Hi,

remove this code snippet:

https://github.com/thorsten/phpMyFAQ/bl ... ml#L41-L52

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
samke
Posts: 8
Joined: Fri Nov 30, 2012 9:53 am

Re: phpmyfaq in iframe

Post by samke »

Hello, I have deleted from the "index.html" the part. Unfortunately, the integration via iFrame is still blocked. What am I doing wrong? I use version 3.0.9.
Thorsten
Posts: 15373
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpmyfaq in iframe

Post by Thorsten »

Hi,

that's not enough. Do you use the rewrite rules and Apache?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
samke
Posts: 8
Joined: Fri Nov 30, 2012 9:53 am

Re: phpmyfaq in iframe

Post by samke »

"Do you use the rewrite rules and Apache" -> I don't know, where can I check?

"that's not enough" -> what should i do?
Thorsten
Posts: 15373
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: phpmyfaq in iframe

Post by Thorsten »

Hi,

please remove the following lines in the file .htaccess:

Code: Select all

# X-Frame-Options to prevent clickjacking
Header always append X-Frame-Options SAMEORIGIN
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
samke
Posts: 8
Joined: Fri Nov 30, 2012 9:53 am

Re: phpmyfaq in iframe

Post by samke »

Great, that worked! Thank you very much for the prompt help!
Post Reply