Cookie banner still reappears after clicking accept on page refresh/navigation
Closed this issue · 1 comments
Describe the bug
After initially clicking accept on the cookie banner, the banner goes away. Any subsequent refresh or page navigation causes the banner to reappear, and subsequent clicks of the accept button do nothing.
I cloned the repo and ran it locally, however could not reproduce the error.
Seems effectively the same issue as described in #661 .
Expected Behavior
Cookie banner to stay dismissed.
Current Behavior
Cookie banner reappears on page refresh or navigation and can't be re-dismissed.
Reproduction Steps
As per description.
I tried accessing the site through a VPN from a non-EU location but it made no difference.
Possible Solution
Console is showing error Refused to apply a stylesheet because its hash, its nonce, or 'unsafe-inline' does not appear in the style-src directive of the Content Security Policy.
.
Might be caused by inline style added in commit f81934e in file workshop/layouts/partials/docs/inject/head.html
conflicting with default stylesheet.
Adding display: none;
to default stylesheet instead might be the solution.
Additional Information/Context
No response
CDK CLI Version
No response
Section
No response
Browser
Chrome, Safari
Language
No response
⚠️ COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.