Skip to content
This repository was archived by the owner on Jun 6, 2024. It is now read-only.

Remove x-frame-options from dashboard pages #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion react_dashboard.module
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ function _react_dashboard_page($node) {
return theme('react_dashboard');
}

/**
* Implements hook_page_alter().
*/
function react_dashboard_page_alter(&$page) {
header_remove('X-Frame-Options');
}

/**
* Just a placeholder function showing how to create and enpoind
Expand Down Expand Up @@ -210,4 +216,4 @@ function _param($value) {
return explode(',', $value);
}
return $value;
}
}