Page 1 of 1

Loading external pages

Posted: Jan 10, 2019 8:15 am
by malcmail
Bene playing around with Mantis for a month or so, trying to see if I can make it work for what I need (zero to do with bug tracking!). One of the things I was hoping to do was display a page in the window but with the various layout of navbars etc in place. Have used an iframe but the external page (regardless of what it is) won't load, giving the error "requests to the server have been blocked by an extension" (in Chrome: in Edge it's just a bit white space!). Is there a setting I need to change to allow this kind of thing or is it simply not possible?
v 2.18

Re: Loading external pages

Posted: Jan 11, 2019 4:55 am
by cas
there is an extension available for chrome:
https://chrome.google.com/webstore/deta ... hbjg?hl=en

Re: Loading external pages

Posted: Jan 11, 2019 5:14 am
by malcmail
Thanks for th reply. Am I right in saying that this would mean every user of my site would need to install this separately?

It's a little odd as I'm trying to embed a google sheet - I can iframe it in a simple page by itself but not if I embed it into a page that ends up in the mantis main window.

Re: Loading external pages

Posted: Jan 11, 2019 5:33 am
by cas
You can also see if adjusting the x-frame setting within mantis helps here.
This would require a change to core code within http_api.php.
There it is stated:
header( 'X-Frame-Options: DENY' );
In place of DENY, you could set an allowed source.

Re: Loading external pages

Posted: Jan 11, 2019 5:40 am
by malcmail
I'll give that a go thanks.

In the meantime I set up a single page on my server which is an iframe in itself. And then used the original destination page to put that iframed page in an iframe - ugly!