New in version 1.5 is the http-response add-header
directive. As written in the documentation -- this can be used in frontend
, backend
and listen
.
What I was trying to within a frontend
section:
use_backend some_backend if some_condition
http-response add-header Vary Origin if some_condition
But this has no effect. The same line placed in the backend
section works perfectly fine.
Can someone please help me understand, what I am missing here? I don't understand, why this does not work in the frontend
section.
My guess would be that within the fronted
there is no response yet and so the directive fails. I tried using it before and after die use_backend
directive.