Skip to content

Instantly share code, notes, and snippets.

View bjornlll's full-sized avatar
👋
Hello!

Björn bjornlll

👋
Hello!
  • Lanzar
  • Singapore
View GitHub Profile
@bjornlll
bjornlll / header-referrer-policy.js
Last active May 16, 2017 03:43 — forked from strikeout/header.js
Attach Meteor HTTP "Referrer-Policy" Headers
Meteor.startup(() => {
WebApp.connectHandlers.use((req, res, next) => {
// See https://blog.appcanary.com/2017/http-security-headers.html#referrer-policy for details,
// and information around the other possible values for the Referrer-Policy header:
// - "no-referrer"
// - "no-referrer-when-downgrade"
// - "origin"
// - "origin-when-cross-origi"
// - "same-origin"
// - "strict-origin"