Skip to content

Not able to inject custom header in response #871

@sans30

Description

@sans30

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!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions