Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basepath not retained in proxied requests #518

Open
norelina opened this issue Dec 1, 2023 · 1 comment
Open

Basepath not retained in proxied requests #518

norelina opened this issue Dec 1, 2023 · 1 comment
Labels

Comments

@norelina
Copy link

norelina commented Dec 1, 2023

Bug description

Basepath not retained in proxied requests when using route created in CHP

image

How to reproduce

  1. Run a simple React app locally
  2. Run CHP locally using configurable-http-proxy --port 8500 --log-level debug
  3. Create a route for the React app
  4. Try to access the React app through the proxy

Expected behaviour

Static files cannot be loaded and return 404s. Trying to load it using: http://localhost:8500/static/js/bundle.js

image

Actual behaviour

The basepath /react of the route is not maintained.

Static file should be loaded by: http://localhost:8500/react/static/js/bundle.js

Notes:

  • When we add the --no-include-prefix the file is indeed available in route http://localhost:8500/react/static/js/bundle.js (we would expect the opposite), but the basepath is still not maintained.
  • Absolute paths are used for the static files (this is not something we have control over in our case)
image

Your personal set up

This has been reproduced in Windows 11, Mac, and also in an Azure Kubernetes cluster.

@norelina norelina added the bug label Dec 1, 2023
Copy link

welcome bot commented Dec 1, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@minrk minrk added new and removed bug labels Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants