http-proxy-middleware Questions
4
I have tried lots of things online but nothing is working so far.
First try (src/pages/api/proxy/[...slug].js):
import { createProxyMiddleware } from 'http-proxy-middleware';
// Create proxy insta...
Chancellery asked 30/3, 2021 at 21:42
4
Solved
Example code is available on https://github.com/baumgarb/reverse-proxy-demo The README.md explains how you can re-produce the issue if you clone the repo.
I have an API Gateway and a downstream se...
Initiative asked 6/11, 2019 at 9:33
2
How can I view detailed logs of all requests and responses being handled by the proxy used by create-react-app?
I don't only want to log some endpoints. Instead, I want to see everything, in as mu...
Adminicle asked 19/8, 2018 at 5:56
1
I am implementing http proxy middleware in to my react app. I want to proxing qa or dev backend services urls from my local .
Example of my dev login url below
https://cors-anywhere.herokuapp.com/h...
Civet asked 2/11, 2020 at 20:6
2
I'm using http-proxy-middleware to implement a transparent proxy.
I'd like to do request/response inspection. I mean, I'd like to print in a text file request/responses that go through the proxy w...
Physicochemical asked 11/5, 2018 at 14:41
2
I'm trying to proxy an external API through Serverless Lambda. Trying the following example for the code below: http://localhost:3000/users/1 returns 200 but body is empty. I must be overlooking so...
Winfield asked 8/3, 2020 at 15:47
3
Solved
How can I define multiple paths to proxy in my proxy.conf.json?
The angular-cli proxy documentation on github looks like you can only have one path (/api):
{
"/api": {
"target": "http://localhos...
Motion asked 12/6, 2017 at 7:47
2
I have developed a website in angular and have the following proxy settings in proxy.conf.js file.
const proxyConfig = [
{
context: '/web/api/webclients/**',
target: 'https://10.109.102.109',
...
Plumbiferous asked 8/9, 2017 at 18:37
0
I am implementing http proxy middleware in my react app , my setupProxy.js path's are not recognising . Below is my code please let me know if i am doing anything wrong.
App component
class App ext...
Phlegmatic asked 2/11, 2020 at 4:21
1
Solved
i tried to setup my proxy to make react with node it tried to use proxy in package.json in the client but it keep giving me error when i try to use get method so i search for another solution and i...
Confirmand asked 19/3, 2020 at 10:57
3
Solved
So I've set up my proxies on my create-react-app application using http-proxy-middleware. I'm sure I've followed the instructions to the letter, but I keep getting a 404 every time I try to click t...
Perverted asked 17/10, 2019 at 11:1
1
Solved
I'm using the http-proxy-middleware (https://github.com/chimurai/http-proxy-middleware#http-proxy-events) to implement a simple proxy (call it my-proxy/) to another REST API (call it /rest-api) tha...
Hermelindahermeneutic asked 30/7, 2019 at 11:55
1
Solved
I have a microservice that proxies every request adding one more field to it. With normal requests it's very easy, just add the field in the request.body and properly set the headers but for multip...
Snooze asked 18/10, 2019 at 12:56
1
Solved
In the http-proxy-middleware library, the documentation states that you can use the target option to specify where you would like to proxy the request. However, they also allow you to use the route...
Curfew asked 13/6, 2019 at 0:38
3
I am trying to debug a proxy in Express, using http-proxy-middleware, but no matter what I do I get absolutely zero response. The endpoint sends the response but it is never returned by the proxy a...
Resultant asked 11/9, 2018 at 7:31
1
Solved
I want to configure proxy with http-proxy-middleware and express .
The rule is a mapping of hostname, exmaple:
http://123.com >> http://localhost:3000/123
http://456.com >> http://loca...
Toil asked 26/3, 2019 at 11:27
1
Solved
In CRA 2.0 proxy property on the package.json does not work. After some research, I came across an article suggesting to use http-proxy-middleware. I created an setupProxy.js in the src of my clien...
Buckinghamshire asked 24/11, 2018 at 6:51
3
Some quick background:
My company's site runs off a CMS with the CMS handling all routing. There are no html files, only razor files (.cshtml). While redoing the site from scratch is what I'd pref...
Eldest asked 2/2, 2017 at 23:49
1
Solved
So some quick background on the site's current setup:
My company's site currently runs off of a CMS. All pages are generated and routed via the CMS, so there are no .html files anywhere. It's all ...
Brenan asked 1/2, 2017 at 20:31
1
© 2022 - 2024 — McMap. All rights reserved.