Skip to content

It is not possible to get the referer header field #208

@rnowosielski

Description

@rnowosielski
  • Framework version: 1.2
  • Implementations: Jersey

Scenario

I am trying to retrieve the header from the original request using the @HeaderParam("Referer") annotation e.g

@PUT
@Path("{url}")
@Produces("application/json")
public Response doSomething(@HeaderParam("Referer") String referer) throws Exception {
       logger.info("Referer: " + referer);
}

Expected behavior

The logger should log the value of the referer header that was passed when calling the endpoint

Actual behavior

The log entry states

[main] INFO LambdaHandler - Referer: null

Steps to reproduce

Create an endpoint according to the snippet in the "use case" section, and then call the endpoint by passing Referer header on the request.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions