Skip to content

Instantly share code, notes, and snippets.

@zoetrope69
Created June 15, 2018 10:30
Show Gist options
  • Save zoetrope69/105b02d2043f5a5a2bebae0f9a21be21 to your computer and use it in GitHub Desktop.
Save zoetrope69/105b02d2043f5a5a2bebae0f9a21be21 to your computer and use it in GitHub Desktop.
Example of using express to get the Do Not Track preferences from a request
app.get('/', (request, response) => {
console.log(request.header('DNT'))
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment