You are here

function _seckit_from_origin in Security Kit 6

Same name and namespace in other branches
  1. 7 seckit.module \_seckit_from_origin()

Sends From-Origin HTTP response header.

Implementation is based on specification draft available at http://www.w3.org/TR/from-origin.

1 call to _seckit_from_origin()
seckit_init in ./seckit.module
Implements hook_init().

File

./seckit.module, line 500
Allows administrators to improve security of the website.

Code

function _seckit_from_origin() {
  $options = _seckit_get_options();
  $value = $options['seckit_various']['from_origin_destination'];
  drupal_set_header("From-Origin: {$value}");
}