Created
June 15, 2018 10:30
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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