Enabling iframes 'X-Frame-Options'

24 views
Skip to first unread message

Mehdi Jaafoura

unread,
May 8, 2023, 4:14:42 PM5/8/23
to Canasta
Hello,

I've run into the issue of not being able to edit pages or view special pages while loading Mediawiki in an iframe.

The Error i get using an iframe of the local mediawiki:
`Refused to display 'https://localhost/' in a frame because it set 'X-Frame-Options' to 'sameorigin'`
even though the website and the wiki are housed on the same domain and server.

As i only have access to LocalSettings.php using Canasta image, i tried with no luck:
$wgEditPageFrameOptions = false;
$wgApiFrameOptions = false;

Any help would be appreciated!
Reply all
Reply to author
Forward
0 new messages