Reputation: 593
Hi, I'm having difficulty using media wiki in a frame. I'm using the following code:
<frameset rows="25%,75%">
<frame src="map.html"/>
<frame src="wiki/index.php/Main_Page"/>
</frameset>
The problem I'm seeing is that there is no content in the wiki frame, even though if I navigate to that URL manually; it shows up.
Edit: Chrome is showing an error in the console: "Refused to display document because display forbidden by X-Frame-Options."
Is there a configuration setting that I need to toggle? Any ideas?
A common reaction people tend to have is 'don't use frames' here's the end result I want:
In the other frame I have a map using GoogleMaps API V3 with a bunch of markers on the map. I would like this to be the navigation of the wiki, so when the user clicks on a marker for i.e. Vancouver, the wiki auto-magically navigates to the Vancouver wiki entry.
Upvotes: 1
Views: 1004
Reputation: 664217
MediaWiki has a bunch of options regarding frames. Those two may cause your problem:
In your MediaWiki 1.15, the X-Frame-Options:DENY
-Header is hardcoded in line 961 of OutputPage.php. If you know what you're doing, you might remove it.
Upvotes: 3