Skip to content

Commit

Permalink
Añadidas ubicaciones a cors
Browse files Browse the repository at this point in the history
  • Loading branch information
uo277310 committed May 1, 2024
1 parent 4c2078a commit 01169ba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gatewayservice/gateway-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ 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(cors());
const corsOptions = {
origin: ['http://localhost', 'http://51.142.17.139'],
optionsSuccessStatus: 200
}

app.use(cors(corsOptions));
app.use(express.json());

//Prometheus configuration
Expand Down

0 comments on commit 01169ba

Please sign in to comment.