Skip to content

Commit 60a251a

Browse files
authored
fix: change referrerPolicy (#122)
1 parent 6537380 commit 60a251a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/applause-button.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const updateClaps = (api, claps, url) =>
2020
headers: {
2121
"Content-Type": "text/plain", //avoids preflight request
2222
},
23+
referrerPolicy: "no-referrer-when-downgrade", // send the full referrer to the applause server, to have by default a clap per page
2324
body: JSON.stringify(`${claps},${VERSION}`),
2425
})
2526
.then((response) => response.text())

0 commit comments

Comments
 (0)