Skip to content

Commit 97a4a64

Browse files
committed
MFE-issues-9: set embed settings in bootstrap
1 parent e051b85 commit 97a4a64

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

config/vanilla/config.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<?php if (!defined('APPLICATION')) exit();
22

33
$Configuration['Garden']['Installed'] = true;
4+
//Embed
5+
$Configuration['Garden']['Embed']['Allow'] = true;
6+
$Configuration['Garden']['Embed']['ForceForum'] = true;
47

58
$Configuration['Database']['Name'] = getenv('MYSQL_DATABASE');
69
$Configuration['Database']['Host'] = getenv('MYSQL_HOST');

vanilla/applications/dashboard/settings/class.hooks.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,8 @@ public function base_render_before($sender) {
254254
$sender->addJsFile('embed_local.js');
255255
}
256256
} else {
257-
$sender->setHeader('X-Frame-Options', 'SAMEORIGIN');
257+
// FIX: MFE-9 issue: add this header sporadically
258+
// $sender->setHeader('X-Frame-Options', 'SAMEORIGIN');
258259
}
259260

260261

0 commit comments

Comments
 (0)