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
/**
* This code has to be inserted in the "Custom CSS" menu, under "Design".
* Put any and all styling here, for all your tags (and pages)
*/
html[data-tags*=blog] #mainNavigation {
/* Restyle the main navigation of all pages tagged with 'blog' */
}
html[data-tags*=lang-en-us] #mainNavigation {
@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"