Skip to content

Logout redirect should use request port or relative URI #174

@ajtucker

Description

@ajtucker

On logging out, the user agent is redirected after a POST to some path using a 3xx response code. The Location in the response is determined from the original request, using the same scheme and host, but doesn't consider the port.

This causes problems when using a non-standard port, e.g. when not using a proxy.

Note that it appears that the Location header no longer needs to be an absolute URI. In RFC 2616 that was the case, but in newer RFC 7231 and RFC 9110 this was relaxed and Location is now a URI reference and can be relative.

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