Skip to content

Request headers are not passed to the play.http.actionCreator class post 2.8 upgrade #11880

Answered by gmethvin
ilapavuluri asked this question in Q&A
Discussion options

You must be logged in to vote

In one of our filters (which extends EssentialFilter) we are setting a custom header like this:
.withHeader(CUSTOM_HEADER, value), this is not persisting in the subsequent calls...example: after executing this filter it comes to our AuthenticationInterceptor (which implements ActionCreator), here I am not seeing those custom headers.

You're referring to the withHeader method on the Result? When you return a result from the filter, your filter would have already called the action. I'm not sure where you're expecting to see the header.

This was working fine in the play 2.3 and started failing after upgrade to 2.8 (since we don't have context now)

OK, I think I'm understanding... You wer…

Replies: 7 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ilapavuluri
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@gmethvin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #11872 on July 15, 2023 10:04.