From 4c2078a1d42ada6b9a06935658bb319ad2eec37b Mon Sep 17 00:00:00 2001 From: uo277310 Date: Wed, 1 May 2024 14:04:23 +0200 Subject: [PATCH] Arreglo --- gatewayservice/gateway-service.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gatewayservice/gateway-service.js b/gatewayservice/gateway-service.js index a0cc49b1..6a7b4ca0 100644 --- a/gatewayservice/gateway-service.js +++ b/gatewayservice/gateway-service.js @@ -1,5 +1,6 @@ const express = require('express'); const axios = require('axios'); +const cors = require('cors'); const promBundle = require('express-prom-bundle'); //libraries required for OpenAPI-Swagger const swaggerUi = require('swagger-ui-express'); @@ -18,7 +19,7 @@ const genQuestServiceUrl = process.env.GEN_SERVICE_URL || 'http://localhost:8003 const rankingServiceUrl = process.env.RANK_SERVICE_URL || 'http://localhost:8004'; const questiongeneratorserviceUrl = process.env.QTEST_SERVICE_URL || 'http://localhost:8007'; -app.use(); +app.use(cors()); app.use(express.json()); //Prometheus configuration