Sunday, April 04, 2021

Re: relayd to match http request according to path and change headers

Le dimanche 4 avril 2021 11:31:27 CEST, vous avez écrit :
> Just a idea, have you tried the keyword request ?
>
> Something like
>
> match request path "/static/*" forward to <webhosts>
>
> Regards,
>
> Christoph
>

Actually, it's not at the forward stage that I have a problem, sorry if
I explained wrongly.

That part works perfect :
"match request path "/static/*" forward to <webhosts>"

I am trying to match a request based on the "static" path and set its
reponse headers.

This is the part where I want to improve things:

match request path "/static/*" response header set "Access-Control-
Allow-Headers" value "Range"

And those, I always get syntax errors.

Thanks
Kind regards.

No comments:

Post a Comment