Loading external pages

Get help from other users here.

Moderators: Developer, Contributor

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

Loading external pages

Post by malcmail » Jan 10, 2019 8:15 am

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: 602
Joined: Mar 11, 2006 11:08 am
Contact:

Re: Loading external pages

Post by cas » Jan 11, 2019 4:55 am

there is an extension available for chrome:
https://chrome.google.com/webstore/deta ... hbjg?hl=en

malcmail
Posts: 17
Joined: Nov 22, 2018 9:05 am

Re: Loading external pages

Post by malcmail » Jan 11, 2019 5:14 am

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: 602
Joined: Mar 11, 2006 11:08 am
Contact:

Re: Loading external pages

Post by cas » Jan 11, 2019 5:33 am

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: Nov 22, 2018 9:05 am

Re: Loading external pages

Post by malcmail » Jan 11, 2019 5:40 am

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