Yesod Cookies - Haskell

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

jkeuhlen

So I'm working with yesod and trying to do a setCookie followed by a redirect . Has anyone gotten this to work before? Everything is fine when I run it locally, but on my production boxes the cookies never get set. I see them in a Set-Cookie header, but chrome and firefox both ignore that cookie and I can't figure out why.

Jack Henahan

Posting some representative code may be helpful.

Joel McCracken

huh; so you are seeing them actually sent to the browser, but it seems like the browser is ignoring them?

Joel McCracken

is there a proxy messing with your responses or smth?

Joel McCracken

like, are you actually able to see what the browser is seeing?

Joel McCracken

or are you just saying you see the server sending it?

Vladimir Ciobanu

@jkeuhlen , Are you sure you're not running frontend and backend on different domains/ports?

Vladimir Ciobanu

Oh, wait. Didn't we solve this over on the slack FP? :D

Vladimir Ciobanu

I am fairly certain we did, and that was the problem.