Why can't I set cookies on localhost

I'm trying to set cookies on Safari, at localhost:8080 and localhost:80, but neither work.


Both of them work on chrome.


Safari version 16.3.

MacBook Pro 14″, macOS 13.2

Posted on Feb 14, 2023 08:34 AM

Reply
4 replies

Feb 14, 2023 08:54 AM in response to MrHoffman

Thanks for the reply,


Looked at some of those but not really my case.


In localhost:80 I'm using OctoberCMS (Laravel), and I don't even control the way it sets cookies, but am able to see it can't set any.


In Localhost:8080 I'm using Vue3, and VueCookieNext, and an example for a cookie set is:

VueCookieNext.setCookie('token', data.token)


Both are docker containers, but neither can set cookies in Safari, only in Chrome.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Why can't I set cookies on localhost

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.