Willy Tarreau <w <at> 1wt.eu> writes:

> 
> On Sat, Mar 31, 2012 at 06:00:05AM +0200, Baptiste wrote:
> > Hi,
> > 
> > You're trying to insert a RESPONSE header if a REQUEST header exists.
> > It may not work, either never match or always match.
> > I mean that your acl has an undetermined state when called.
> > You should match something from the response to be sure it works.
> 
> In practice it will never match because when you get the response, you
> don't have the request anymore. That's why we'd like to finish the move
> from ACL to patterns and have sticky ones.
> 
> In the meantime if you need to do this for only one (or very few) hosts,
> you can switch the request to different backends depending on the hostname
> and perform the rewrite in the backend.
> 
> Regards,
> Willy
> 
> 

Hi Willy,

I'm trying to do a similar thing where I'd like to be able to return the
contents of a request header in a response header (like the way the CORS
Access-Control-Allow-Headers response header might contain the list of
headers given in Access-Control-Request-Headers).  Is this possible at all
as of the new work that's been done in v1.5?

Thanks,
Matthew


Reply via email to