Open wokalek opened 2 months ago
After deeping down inside nitro and httpxy, the following setting helped:
'/graphql': { target: 'http://localhost:8000/graphql', prependPath: false },
No, now it proxies requests to just http://localhost:8000
. That's not what I need.
Environment
Build Modules: -
Reproduction
Set the settings from my settings described below and make sure that the proxy request is sent to the wrong url from nitro side.
Describe the bug
nuxt config:
The request from the browser goes to
http://localhost:3000/graphql
, but in the response I see (from Django) that the request came tohttp://localhost:3000/graphql/
and because my route on Django is set specifically to/graphql
, it cannot be resolved.I can add
\/?
to the expression on the backend side, but this ishttp://localhost:8000/graphql/
not what I wrote in the devProxy settings. This is a different url.How to solve the problem? Or is it a bug?
Request in headers tab:
Request preview (Django response): Django logs:
Additional context
No response
Logs
No response