最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

next.js - OneTrust Cookie Banner Reappearing on Page Refresh - Stack Overflow

programmeradmin2浏览0评论

I'm using OneTrust for cookie consent in our Next.js project, but the cookie banner keeps reappearing every time I refresh the page, even after clicking the "Accept All Cookies" button.

Here's the relevant script I'm using:

// onetrust.js
// Imported this script file in layout.tsx
function OptanonWrapper() { }

Has anyone encountered this issue before? Any suggestions on how to fix it?

Thanks in advance for your help!

发布评论

评论列表(0)

  1. 暂无评论