I initially looked in all different places to set the headers such as the header.php
of my theme, the UsersController
, etc. somebody pointed out the most obvious :
the index.php
file in the application root folder.
So I set it even before the call to bootstrap.php
and it now works - the P3P headers get send with the cookie.