Skip to content

How to make HATEOAS consider contextPath ? #1268

@ludovic-andreas-toth

Description

@ludovic-andreas-toth

Hi,

I have a problem described in more details here: https://stackoverflow.com/questions/61124099/context-path-not-considered-in-hateoas-links-when-upgrading-from-spring-boot-1-5.

Basically after upgrading to the latest version of spring boot(2.2.26), when using hateoas, the Links are not containing the context-path(server.servlet.context-path).

I have tried using forward-headers-strategy with both FRAMEWORK and NATIVE with a ForwardedHeaderFilter. Adiitionally, the x-forwarded-prefix cannot be set from the config with tomcat.

Are there any guidelines about how to deal with this issue or how to avoid it ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions