Loading external pages

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
malcmail
Posts: 17
Joined: 22 Nov 2018, 14:05

Loading external pages

Post 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
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: Loading external pages

Post by cas »

there is an extension available for chrome:
https://chrome.google.com/webstore/deta ... hbjg?hl=en
malcmail
Posts: 17
Joined: 22 Nov 2018, 14:05

Re: Loading external pages

Post 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.
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: Loading external pages

Post 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.
malcmail
Posts: 17
Joined: 22 Nov 2018, 14:05

Re: Loading external pages

Post 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!
Post Reply