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.
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.
Posting some representative code may be helpful.
huh; so you are seeing them actually sent to the browser, but it seems like the browser is ignoring them?
is there a proxy messing with your responses or smth?
like, are you actually able to see what the browser is seeing?
or are you just saying you see the server sending it?
@jkeuhlen , Are you sure you're not running frontend and backend on different domains/ports?
Oh, wait. Didn't we solve this over on the slack FP? :D
I am fairly certain we did, and that was the problem.
:thumbs_up: