Forum Discussion
I know this is really old, but in case somebody finds it via web search:
You can (at least now) add "Header" parameters up at the Resource level. They'll be copied down to all requests under them.
hi,
that sounds great, but what if you have 500 resources ? :(
Is there any way to apply a header to ALL of your resources ?
EDIT : ok, the upper method works fine
"then try adding a RequestFilter.filterRequest event with the following:
def headers = request.requestHeaders
headers.put( "test-header", "test" )
request.requestHeaders = headers"
Well, in fact it works pretty well ... too well: at each call, the header is added. It should happen only once.
I'm trying to find a way to make it a 'one-shot' process ...
Anyone has already been through this ?
thanks
Alex