Skip to content

Commit

Permalink
Add 'Cross-Origin-Window-Policy' support - whatwg/html#3740
Browse files Browse the repository at this point in the history
  • Loading branch information
craigfrancis committed Jun 19, 2018
1 parent 9500452 commit 50692ac
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/library/setup/database.txt
Original file line number Diff line number Diff line change
Expand Up @@ -448,10 +448,10 @@
"length": 19,
"collation": null,
"null": false,
"default": "CURRENT_TIMESTAMP",
"extra": "on update CURRENT_TIMESTAMP",
"default": "current_timestamp()",
"extra": "on update current_timestamp()",
"options": null,
"definition": "timestamp NOT NULL DEFAULT \"CURRENT_TIMESTAMP\" on update CURRENT_TIMESTAMP"
"definition": "timestamp NOT NULL DEFAULT \"current_timestamp()\" on update current_timestamp()"
},
"type_bool": {
"type": "tinyint",
Expand Down
9 changes: 9 additions & 0 deletions framework/0.1/library/class/response/response-html.php
Original file line number Diff line number Diff line change
Expand Up @@ -1574,6 +1574,15 @@ private function _send_init() {
header('Referrer-Policy: ' . head($output_referrer_policy));
}

//--------------------------------------------------
// Window policy

$output_window_policy = config::get('output.window_policy', 'DENY');

if ($output_window_policy) {
header('Cross-Origin-Window-Policy: ' . head($output_window_policy));
}

//--------------------------------------------------
// Framing options

Expand Down

0 comments on commit 50692ac

Please sign in to comment.