TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: What is the simplest way to add a GDPR cookie consent to the website?

1 点作者 candidtim将近 4 年前
Having a GDPR compliant cookie consent on a website is a common enough requirement today. I assume there should be a few "out of the box" solutions for it. So, I wonder what is the simplest way to add a GDPR compliant cookie consent to the website and block *third-party* cookies should the users chose so? Are there any open-source solutions for this that rely on Javascript only (no back end involved)?

2 条评论

thanatos519将近 4 年前
The best approach is to not track unauthenticated users at all. Make people consent to GPDR to create an account.
评论 #27283452 未加载
maxrev17将近 4 年前
Yep go without cookies is the best way!