Tim Funk <funkman <at> apache.org> writes:

> 
> No "coding" needed if you use Url Rewrite Filter ...
> http://urlrewritefilter.googlecode.com
> 
>      <rule>
>          <from>.*</from>
>          <set type="response-header" name="P3P">P3P code here</set>
>      </rule>
> 
> -Tim
> 
> On 1/17/2011 8:11 AM, Joseph Morgan wrote:
> > You know what... I need to learn to read what I write... you are correct, it
needs to be added to every response.
> >
> > Thanks
> >
> > -----Original Message-----
> > From: André Warnier [mailto:aw <at> ice-sa.com]
> > Sent: Friday, January 14, 2011 3:07 PM
> > To: Tomcat Users List
> > Subject: Re: How to configure Tomcat/Coyote to deliver a P3P Header on Every
Request
> >
> > Joseph Morgan wrote:
> >> Using Tomcat 6.0.13, how do we configure the Coyote server to deliver a
> >> P3P header on every request, even if for a JavaScript, Image, CSS, etc?
> >>
> > I don't know about the Coyote server, and it won't work for a request, but
if you are
> > talking about a Tomcat webapp and its responses, how about a servlet filter
mapped to "/*"
> > and adding such a header to every response ?
> 

I have implemented Url Rewrite Filter and verified a simple url redirect works
with this rule.

     <rule>
                     
        <from>/abc/</from>
        <to type="redirect">/Alpine/</to>

     </rule>

But when I tried to set the P3P in the response header of every response using
this rule, it wasn't successful.

     <rule>
                     
         <from>.*</from>
         <set type="response-header" name="P3P">CP="NOI DSP COR"</set>

     </rule>

I monitored my response headers and the P3P are not set. 

I have tried several different variation of my rule in the off chance that it
was a simple syntax mismatch e.g. trying without the CP, without the quotes etc.
 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to