Hi all.
We have a servlet that returns a custom header:
response.addHeader(“msg-error”, “err2”);
In author it works correctly and returns the header. In the dispatcher domain it does not return the header, we think that the error is in the configuration of the dispatcher or Fastly.
In the dispatcher we have tested, adding the header "msg-error", to the custom header of the site, in the farm we have referenced the file Mysite_clientheaders.any
Mysite_clientheaders.any
“msg-error”
$include “./default_clientheaders.any”
But it still doesn't work, any idea what else we should configure?
Best Regards.
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
We have already found the problem,
The servlet returns a 403 error, in the servlet we included the custom header..
The problem was in the configuration of the virutal host, it had this value
DispatcherPassError 1
The 403 error is returned by the dispatcher and not by AEM publish.
We have set:
DispatcherPassError 0
Now the error is handled by AEM publish and returns our custom header.
Thank you very much.
Views
Replies
Total Likes
We have already found the problem,
The servlet returns a 403 error, in the servlet we included the custom header..
The problem was in the configuration of the virutal host, it had this value
DispatcherPassError 1
The 403 error is returned by the dispatcher and not by AEM publish.
We have set:
DispatcherPassError 0
Now the error is handled by AEM publish and returns our custom header.
Thank you very much.