Path rewritting is happening after first api call #586
Unanswered
BeforeuCode
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi i am using proxy with express server that runs Angular Universal. I am trying to proxy request to my backend but unfortunatelly i am getting errors. And it looks like path rewriting happens after the first call to api. There is my server.ts configuration. I want to proxy every /api call to localhost:8080 and remove /api from path.
for example call from
localhost:4200/api/public/offers?category=NEW
should beproxied to localhost:8080/public/offers?category=NEW
And this is what i am getting on console
where
data
is first call to the apiBeta Was this translation helpful? Give feedback.
All reactions