1 system.install system_update_1063()

Set a default value for the X-Frame-Options header. This will not allow the site to be rendered in an iframe on another domain unless specified.

Related topics

File

core/modules/system/system.install, line 3157
Install, update and uninstall functions for the system module.

Code

function system_update_1063() {
  $config = config('system.core');
  $config->set('x_frame_options', 'SAMEORIGIN');
  $config->save();
}