Setting P3P header before Set-Cookie

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.

Actually, these lines are working fine with IE7. But I have the same issue on Safari (Mac and PC).