Node.js proxying made simple. Configure proxy middleware with ease for connect, express, browser-sync and many more. Powered by the popular Nodejitsu http-proxy.
Questions tagged [http-proxy-middleware]
241 questions
0
votes
1 answer
Angular CLI HTTP Proxy Cloud Function Configuration
Is it possible with Angular CLI and http-proxy-middleware to intercept/proxy calls to an external URL such as a cloud server-less function like Azure Functions or Firebase functions?
For example, targeting an external cloud based function URL such…

Alexander Staroselsky
- 37,209
- 15
- 79
- 91
0
votes
1 answer
webpack devServer and proxy shows a 404 page
where am I supposed to connect when I proxy to an third domain like that ?
module.exports = {
...
devServer: {
proxy: {
"/": {
target: "http://www.example.org",
},
changeOrigin: true
}
}
...
}
shouldn't…

Daniele
- 829
- 1
- 13
- 23
0
votes
2 answers
Vue-resource and http-proxy-middleware not routing to backend
I am new to Vue js and writing a front end for a simple task tracker app. I am trying to use vue-resource and http-proxy-middleware to have the app connect to my backend. Backend is on port 3000, and the Vue js front end is on port 8080.
I used the…

Patrick
- 90
- 2
- 8
0
votes
0 answers
How to handle express routing where more than one route matches?
I have an express app set up using http-proxy-middleware, but I'm having a problem routing only a subset of requests through the proxy.
Here is what my config looks like:
app.use(/\/.*-img/i, proxy({changeOrigin: true, logLevel: 'debug', target:…

Ben H
- 3,136
- 3
- 25
- 34
0
votes
1 answer
Webpack / Angular CLI / Proxy forwarding
I need to setup a proxy within AngularCLI / Webpack env to forward requests from http://localhost:4200/rest to https://someserver.com/somepath/rest
For one, the endpoint is a https and not a http.
Secondly, the request url could be…

pop
- 3,464
- 3
- 26
- 43
0
votes
1 answer
Proxy Rewrite secure domain to insecure domain
As I have created wordpress blog which is hosted in NGINX webserver, and this webserver is running on 8090 port and it is insecure. So to access blog post I need to navigate as http://example.org:8090/blog and…

UIseeker
- 97
- 1
- 11
0
votes
1 answer
Angular2/Angular seed http-proxy-middleware proxy api requests
Im using the Angular Seed project and trying to set up a proxy for api requests for a backend service that is running on a different port.
My code so far:
/* Add proxy middleware */
this.PROXY_MIDDLEWARE = [
require('http-proxy-middleware')({
…

Steve Fitzsimons
- 3,754
- 7
- 27
- 66
0
votes
1 answer
proxy not serving for get request : http-proxy-middleware
I am using http-proxy-middleware for reverse proxying the application in order to avoid CORS during development.
Following is the setup for http-proxy-middleware that is being used. I am getting the response for each method except GET.
Setup :…
0
votes
1 answer
How do I run multiple Apps on Express without routing?
I have 2 apps I am looking to add to my profile website which itself is an express app.
I want to run these apps under a /projects route such that we can have localhost/projects/app1 and localhost/projects/app2
I want all the sub routes for each app…

Ayabonga Qwabi
- 306
- 5
- 12
0
votes
1 answer
Angular 2.0 service call not going through http-proxy-middleware
I have an Angular 2.0 application and recently I added http-proxy-middleware with the following bs-config.js:
var proxyMiddleware = require('http-proxy-middleware');
module.exports = {
server: {
port: 3000,
middleware: {
…

Adolfo Perez
- 2,834
- 4
- 41
- 61
0
votes
1 answer
Browser-sync&lite-server: http-proxy-middleware intercepts non-existing urls
I have the following routing in the angular2 app:
/** Application routes */
const routes: Routes = [
{ path: '', component: LandingComponent },
{ path: 'about', component: AboutUsComponent },
// catch all path, should go after all…

Vadim Kirilchuk
- 3,532
- 4
- 32
- 49
0
votes
1 answer
Express, http-proxy-middleware and net::ERR_CONNECTION_REFUSED
I been trying to debug an issue I have with have a Express App thats uses http-proxy-middleware to forward requests to another backend service. There is a third part application that calls my server by making a request that explicitly uses an IP…

Code Uniquely
- 6,356
- 4
- 30
- 40
-1
votes
1 answer
How can I connect to my backend server from my frontend dev server react
I am running my node backend on port 8000 and my dev server front end on port 9002. Ive tried a few ways to proxy to my backend when running dev, but all seem to fail (maybe because i also have
"type": "module"
)? I have tried http-proxy-middleware,…

frederickpenn
- 41
- 6
-1
votes
1 answer
How can I create a global middleware to validate subscriptions?
For the architecture that is intended to be used for the project, it is necessary to have a middleware that validates if a user has an active subscription, that is, if he has already paid for it.

EdsonMeza97
- 3
- 2
-1
votes
1 answer
Angular, Express & http-proxy-middleware. How to reach remote server?
I'm building MEAN stack app, so I have at backend node+express server, Angular on front.
Atm I need to reach a remote non-cors server with data by sending a POST request to it. Googled for a day, and understand that I need to establish a proxy…

Kirill K
- 117
- 1
- 14