From 36950afca4ded317dcd24731d05f9ab27f2ab0e9 Mon Sep 17 00:00:00 2001 From: NyxiumYuuki Date: Fri, 28 May 2021 15:09:03 +0200 Subject: [PATCH] frontend ip added --- backend/service-authentication/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/service-authentication/server.js b/backend/service-authentication/server.js index a15ce7a..8c6812d 100644 --- a/backend/service-authentication/server.js +++ b/backend/service-authentication/server.js @@ -10,7 +10,7 @@ app.use(bodyParser.urlencoded({extended:true})); app.use(bodyParser.json()); const cors = require('cors'); -app.use(cors({origin: 'http://127.0.0.1:4200', credentials: true})); +app.use(cors({origin: 'http://frontend:4200', credentials: true})); const mongoConnect = require('./mongodbConnect');