How can I share cookies between two subdomain using caddy file

Hi, i want share cookies between all the subdomains of localhost. The cookie is basically generated on localhost:3000/api/set . But it’s is not shared with all the subdmains like home.localhost or learn.localhost. What’s wrong with my configuration.

{

     admin :2020
     local_certs
}

home.localhost {
    # Serve the main site
    reverse_proxy 127.0.0.1:3000
}


learn.localhost {
    reverse_proxy localhost:4000
}

Howdy @AR_Dhrubo, welcome to the Caddy community.

This isn’t really related to Caddy itself, but rather between the upstream app and the browser. It has to do with the way the server sets the cookies.

I found an answer which might help explain things a little:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.