Consuming Cookies between subdomains

Posted 8 months ago by Tarasovych

I have sub1.example.com (port 80 - Laravel app) and sub2.example.com (port 8080 - Vue app). Both on local now. I want to set a Cookie on sub1.example.com and send it to sub2.example.com. So I set Cookie parameter Domain='.example.com'. Why sub2.example.com can't receive Cookie? There is even no Set-Cookie header. What am I doing worng? According to this answer, I have correct Domain parameter. Thank you for help!

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.