mirror of
https://github.com/abrendan/MicDropMessages.git
synced 2025-08-25 22:12:02 +02:00
Initial commit
This commit is contained in:
22
node_modules/referrer-policy/README.md
generated
vendored
Normal file
22
node_modules/referrer-policy/README.md
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
Referrer Policy
|
||||
===============
|
||||
[](https://travis-ci.org/helmetjs/referrer-policy)
|
||||
|
||||
The [Referer HTTP header](https://en.wikipedia.org/wiki/HTTP_referer) is typically set by web browsers to tell the server where it's coming from. For example, if you click a link on *example.com/index.html* that takes you to *wikipedia.org*, Wikipedia's servers will see `Referer: example.com`. This can have privacy implications—websites can see where you are coming from. The new [`Referrer-Policy` HTTP header](https://www.w3.org/TR/referrer-policy/#referrer-policy-header) lets authors control how browsers set the Referer header.
|
||||
|
||||
[Read the spec](https://www.w3.org/TR/referrer-policy/#referrer-policies) to see the options you can provide.
|
||||
|
||||
Usage:
|
||||
|
||||
```javascript
|
||||
const referrerPolicy = require('referrer-policy')
|
||||
|
||||
app.use(referrerPolicy({ policy: 'same-origin' }))
|
||||
// Referrer-Policy: same-origin
|
||||
|
||||
app.use(referrerPolicy({ policy: 'unsafe-url' }))
|
||||
// Referrer-Policy: unsafe-url
|
||||
|
||||
app.use(referrerPolicy())
|
||||
// Referrer-Policy: no-referrer
|
||||
```
|
Reference in New Issue
Block a user