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

help request: prevent client's from being redirected when making a request to APISIX route #12017

Open
bmbson opened this issue Mar 4, 2025 · 0 comments
Labels
question label for questions asked by users

Comments

@bmbson
Copy link

bmbson commented Mar 4, 2025

Description

The problem I'm having is that routes that are requested by clients are redirecting to the upstream address.

The behavior I want is that requests are forwarded by APISIX without the client getting to see or having to visit the actual upstream address.

as you can see, when i request the route I get a 301.

Image

It then sends the user to the upstream address and gives the (correct) requested response.
Image

I don't want the user to ever visit the upstream, instead I'd like the user to get the requested data from the APISIX location. Is there a setting I need to turn on? Or is this how it's supposed to work?

Upstream JSON:

Image

Route JSON:

Image

  • APISIX version (run apisix version): 3.11
  • Operating system (run uname -a): debian
  • OpenResty / Nginx version (run openresty -V or nginx -V): nginx version: openresty/1.25.3.2
  • APISIX Dashboard version, if relevant: 3.0.0

Environment

  • APISIX version (run apisix version):
  • Operating system (run uname -a):
  • OpenResty / Nginx version (run openresty -V or nginx -V):
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
  • APISIX Dashboard version, if relevant:
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Apache APISIX backlog Mar 4, 2025
@dosubot dosubot bot added the question label for questions asked by users label Mar 4, 2025
@bmbson bmbson changed the title help request: help request: prevent client's from being redirected when making a request to APISIX route Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question label for questions asked by users
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant