Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to inject custom header in response #871

Open
sans30 opened this issue Dec 22, 2022 · 0 comments
Open

Not able to inject custom header in response #871

sans30 opened this issue Dec 22, 2022 · 0 comments

Comments

@sans30
Copy link

sans30 commented Dec 22, 2022

Hello,

I am using ResourceRepositoryBase class and i have an use case to inject custom header in response. I have tried to implement HttpRequestContextAware interface in my repository class and added below code snippet in findAll() method, but i am not seeing the custom header in response. I couldn't find clear documentation to achieve this functionality.

httpRequestContextProvider.getRequestContext().get response().setHeader("custom-header","custom-values");

Could you please suggest and share some sample..

Thanks in Advance!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant