Created
October 17, 2024 15:31
-
-
Save EArminjon/ed92b791f024aa66699491aa969514fc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <body> | |
| <h1>Cookie issue reproductible example</h1> | |
| <p>Open the console to see the logs</p> | |
| <button onclick="createCookieAndSendMessage()"> | |
| Create cookie | |
| </button> | |
| <script> | |
| function createCookieAndSendMessage() { | |
| // Create the cookie | |
| document.cookie = 'consent=true; expires=Fri, 31 Dec 9999 23:59:59 GMT'; | |
| // Send the post message | |
| window.postMessage({ id: "cookieAccepted" }, '*'); | |
| } | |
| </script> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment