JAX-RS custom headers not being added to redirect response
问题 I am trying to add some custom header parameters to a HTTP 303 (redirect) response. However, the new headers seem to be getting stripped from the response. This code is meant to receive a request and returns a HTTP 303 response: @POST @Path("/authorize") @Produces("application/x-www-form-urlencoded") public Response getOAuthGrant(@HeaderParam(OAuth2.AUTHORIZATION) @DefaultValue("") String authorization, @HeaderParam(OAuth2.CLIENT_ID) @DefaultValue("") String clientId, @HeaderParam(OAuth2