Questions tagged [express-gateway]

Express Gateway is a microservices API Gateway built on Express.js.

Express Gateway is a bunch of components which declaratively build around Express to meet the API Gateway use case. Express Gateway’s power is harnessed the rich ecosystem around Express middleware.

118 questions
15
votes
1 answer

CORS Problem - preflightMissingAllowOriginHeader - Express Gateway and Axios

I'm tyring to use Express Gateway + AXIOS (react) + Express, but I'm receiving the CORS Erro, I already did many thing but nothing worked. The error is this: Cross-Origin Resource Sharing error: PreflightMissingAllowOriginHeader My EXPRESS is like…
Jota
  • 819
  • 6
  • 24
  • 41
11
votes
1 answer

How to properly use express-gateway for authentication of a web app?

I am fairly new to the concept of microservices and api gateways in general. I am trying to understand the role that an api gateway plays in a modern web application using many microservices. I have been reading the documentation and tutorials of…
3
votes
2 answers

Decode and Set Jwt payload to request parametes

We are using express-gateway for our micro services. We have set up authentication using Jwt. We want to verify jwt and decode the payload and set it to req params This is our gateway.config.yml file http: port: 8080 admin: port: 9876 host:…
3
votes
1 answer

Creating users in express-gateway

Express-gateway has its own consumer management system and an Admin Api for managing user creation, updating, and so on. According to docs the Admin Api is for internal use and discourages exposing it publicly. If that's the case, then how does a…
1192805
  • 988
  • 2
  • 10
  • 26
3
votes
1 answer

Express Gateway JWT issue

I'm using express gateway as an API gateway. I want EG (Express Gateway) to authenticate JWTs that my keycloak server will sign. My setup in gateway.config.yml is like this: http: port: 6060 admin: port: 9876 hostname: localhost apiEndpoints: …
Rambou
  • 968
  • 9
  • 22
2
votes
0 answers

Express Gateway errors on https self-signed certificate even with certificate verification disabled in Node

I am playing around and learning Express Gateway. The getting started guide requires that I make calls to an https endpoint. My organization runs all requests through a middlebox that sniffs https content and has its root certs installed on our…
BeetleJuice
  • 39,516
  • 19
  • 105
  • 165
2
votes
1 answer

Express-Gateway, serve same API path/route, but under different ServiceEndpoints

I have a server in Node.js + Express, that exposes some APIs both to public and admins. Actually I have 2 cloned instances running, one for Test, one for Production. They are twins, exposing same routes (/admin, /public), but are connected to two…
DeLac
  • 1,068
  • 13
  • 43
2
votes
1 answer

express-gateway: Is there a way to serve static files direct from the gateway?

I have configured the express-gateway with a few apis and pipelines. I also have a static web app with some html and js files. Can i serve those files directly from the gateway or do i have to add another nginx based microservice to do…
Guido Zockoll
  • 141
  • 3
  • 11
2
votes
2 answers

express gateway key-auth check domain

Express gateway allows to use key-auth to restrict access to certain users / apps. However when it concerns a webapp, it means that you cannot obscure the credentials at the client (in the sense that it's public info). Typically you would want to…
html_programmer
  • 18,126
  • 18
  • 85
  • 158
2
votes
1 answer

Express Gateway JWT verification in cookies

I would like to verify the JWT token which is stored in the cookies in Express Gateway. I tried the below configuration of gateway.config.yml but it is not working. Is it possible to do this in Express Gateway? HTTP Request Cookie: culture=EN-US;…
KenLai
  • 251
  • 1
  • 4
  • 15
2
votes
1 answer

Express Gateway disable TLSv1.0

I'm working with "Express Gateway" which is running on a node server. As of my understanding, configurations should be done in gateway.config.yml file. I couldn't find how to disable TLSv 1.0 from the documentation provided by "Express Gateway".…
Shamith
  • 21
  • 3
2
votes
0 answers

How to test a API Gateway?

I want to make tests on a API Gateway with release with 'Express-Gateway'. I see 'express-gateway-test-tools', but there are no manual or 'how to'. Can someone help me?
2
votes
2 answers

Express-Gateway, How to pick a service end point based on URL pattern?

I am trying to get a bunch of individual servers on the same domain behind the gateway. Currently, each of these servers can be reached from outside world via multiple names. Our sales team wanted to provide customers with a unique url, so if a…
unexplored
  • 1,414
  • 3
  • 18
  • 37
2
votes
1 answer

Express gateway gives 404

I'm the service url as GET REQUEST http://myipaddress:5000/api/Tenant/tenants/{TenantID} The TenantID will be dynamic I also have the POST as http://myipaddress:5000/api/Tenant/tenants In this post request payload is passed in request body. My…
MAQ
  • 443
  • 7
  • 15
1
vote
1 answer

Express-Gateway - 502 Bad Gateway with docker-compose Nodejs Microservices Architecture

I've been trying to do a NodeJS Microservices Architecture using Docker. I currently have 2 services : Auth API et Users CRUD API. Now my goal is to setup a Gateway using Express-Gateway. I followed many tutorials on the web to try to set it up but…
1
2 3 4 5 6 7 8