Skip to content

handling redirects #2

@dtenenba

Description

@dtenenba

I am running n2proxy -backend http://localhost:8000 -port 5000

Hitting the / endpoint of that backend redirects (with a 301 or 302) to
http://localhost:8000/login. Unfortunately if I go to http://localhost:5000 I end up with
http://localhost:8000/login in my browser address bar. What I want is
http://localhost:5000/login. Do you know how to fix this?

Seems I need to intercept the Location header and rewrite it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions