Comparing version 17.3.1 to 17.4.0
@@ -195,3 +195,10 @@ 'use strict'; | ||
noOpen: Joi.boolean().default(true), | ||
noSniff: Joi.boolean().default(true) | ||
noSniff: Joi.boolean().default(true), | ||
referrer: Joi.alternatives([ | ||
Joi.boolean().valid(false), | ||
Joi.valid('', 'no-referrer', 'no-referrer-when-downgrade', | ||
'unsafe-url', 'same-origin', 'origin', 'strict-origin', | ||
'origin-when-cross-origin', 'strict-origin-when-cross-origin') | ||
]) | ||
.default(false) | ||
}) | ||
@@ -198,0 +205,0 @@ .allow(null, false, true) |
@@ -84,2 +84,6 @@ 'use strict'; | ||
} | ||
if (security.referrer !== false) { | ||
response._header('referrer-policy', security.referrer, { override: false }); | ||
} | ||
}; |
@@ -5,3 +5,3 @@ { | ||
"homepage": "http://hapijs.com", | ||
"version": "17.3.1", | ||
"version": "17.4.0", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -13,3 +13,3 @@ <img src="https://raw.github.com/hapijs/hapi/master/images/17.png" align="right"/> | ||
Development version: **17.3.x** ([release notes](https://github.com/hapijs/hapi/issues?labels=release+notes&page=1&state=closed)) | ||
Development version: **17.4.x** ([release notes](https://github.com/hapijs/hapi/issues?labels=release+notes&page=1&state=closed)) | ||
[![Build Status](https://secure.travis-ci.org/hapijs/hapi.svg?branch=master)](http://travis-ci.org/hapijs/hapi) | ||
@@ -16,0 +16,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
169132
4207