Skip to content

Commit f6a4a35

Browse files
authored
chore(cloud-function): set "Referrer-Policy: no-referrer" on ad clicks (#13496)
1 parent f27debf commit f6a4a35

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cloud-function/src/handlers/proxy-bsa.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export async function proxyBSA(req: Request, res: Response) {
6565
userAgent
6666
);
6767
if (location && (status === 301 || status === 302)) {
68+
res.setHeader("Referrer-Policy", "no-referrer");
6869
return res.redirect(location);
6970
} else {
7071
return res.sendStatus(502).end();

0 commit comments

Comments
 (0)