Mike Lee wrote:
> Hi folks,
> 
> 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
> privacy policy before the cookie is set.
> 
> 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.
> 
> Mike

Hi mike, I think I have exactly the same issue. How did you manage to 
solve this problem ? A strange thing is that I can reproduce this 
problem with safari mac and I never saw someone mentionning while 
browsing the web about this case.

I tried to add
response.headers['P3P'] = 'CP="CAO PSA OUR"'
in a before_filter action in application.rb, but nothing changed.

Thanks a lot.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to