You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
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
The text was updated successfully, but these errors were encountered:
How the cookie banner was presented originally was hacky:
the default style was to use "display:none" and remove the element if it wasn't needed.
This change makes it use a CSS class and an appropriate override.
Functionally, this is identical to the original implementation.
Additionally, the original banner was inside the head of the page.
This caused validation errors and made some browsers upset.
By moving the JS around and making sure it's at the end, the page also loads faster.
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.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bugThis issue is a bug.needs-triageThis issue or PR still needs to be triaged.
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
The text was updated successfully, but these errors were encountered: