For a project I’m working on, I need to set an HTTP header BEFORE the
Set-Cookie header is sent. Basically, I need to send along our compact
I’ve tried using:
@headers[‘P3P’] = “P3P: blah blah blah…”
…but the problem is that no matter what I do, the Set-Cookie header is
sent first, and the P3P header is sent afterwards. I also tried setting
the “Set-Cookie” header directly in @headers instead of using the
cookie method, and changing the order in which the @headers were set.
But rails always seems to want to send the “Set-Cookie” header first.
I’m thinking I might need to override some rails class, but I don’t have
a clue as to where in rails to even begin looking.
Any ideas on how I can get the P3P header sent first instead?
Thanks in advance for any help.