-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Content cookie available after delete on Safari #11779
Comments
We still need an example. Even if it doesn't break in Stackblitz we use these examples to pull down locally and eventually turn into a test. |
Hello @ohrrkan. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
linked |
Hi @ohrrkan, I downloaded the repo you provided and tested locally with Safari 17.6. The cookie was successfully deleted after visiting http://localhost:4321/remove. Here are the steps I take:
Is there anything that I might have missed in order to reproduce the situation? |
I've also tried and failed to reproduce it with your code using the same steps as @mingjunlu. Can you provide step-by-step instructions to reproduce this. |
Hello @ohrrkan. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
Sorry for not reading the description carefully. I actually reproduced it without noticing 😅 So the problem is that, even though the cookie is gone in the storage tab of Safari's developer tools, it is somehow still accessible on the client side (by accessing Compared with Chrome and Firefox, the removed cookie is not accessible on the client side. I did a little bit of searching and found a similar issue: Seems like a Safari bug to me 🤔 |
Ah, well found. That doesn't seem like something we can deal with, so I'll close this. |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
Safari
Describe the Bug
Not certain it is a Astro issue or Safari (Need more investigation) but impact.
The content of the cookie can be access on the client after a cookie.delete (Only on Safari)
Example :
set.astro
delete.astro
What's the expected result?
Tempory solution :
cookies.set("sb-access-token", "",{ path: "/" });
in place ofcookies.delete("sb-access-token", { path: "/" });
Link to Minimal Reproducible Example
stackblitz not work with safari
Participation
The text was updated successfully, but these errors were encountered: