diff --git a/gatewayservice/gateway-service.js b/gatewayservice/gateway-service.js index 30771bb7..471ce136 100644 --- a/gatewayservice/gateway-service.js +++ b/gatewayservice/gateway-service.js @@ -12,14 +12,14 @@ const app = express(); app.disable('x-powered-by'); const port = 8000; -const originEndpoint = process.env.REACT_APP_API_ORIGIN_ENDPOINT || 'http://localhost:3000'; +//const originEndpoint = process.env.REACT_APP_API_ORIGIN_ENDPOINT || 'http://localhost:3000'; const authServiceUrl = process.env.AUTH_SERVICE_URL || 'http://localhost:8002'; const userServiceUrl = process.env.USER_SERVICE_URL || 'http://localhost:8001'; const creationServiceUrl = process.env.CREATION_SERVICE_URL || 'http://localhost:8005'; const retrieveServiceUrl = process.env.RETRIEVE_SERVICE_URL || 'http://localhost:8004'; const corsOptions = { - origin: originEndpoint, + origin: '*', methods: ['GET', 'POST'], allowedHeaders: ['Content-Type', 'Authorization'] }; diff --git a/users/authservice/Dockerfile b/users/authservice/Dockerfile index af171fc5..37d87589 100644 --- a/users/authservice/Dockerfile +++ b/users/authservice/Dockerfile @@ -8,8 +8,7 @@ WORKDIR /usr/src/authservice COPY package*.json ./ # Install app dependencies -RUN npm install --ignore-scripts - +RUN npm install # Copy the app source code to the working directory COPY . . diff --git a/users/userservice/Dockerfile b/users/userservice/Dockerfile index f54225c9..03ffb7d3 100644 --- a/users/userservice/Dockerfile +++ b/users/userservice/Dockerfile @@ -8,7 +8,7 @@ WORKDIR /usr/src/userservice COPY package*.json ./ # Install app dependencies -RUN npm install --ignore-scripts +RUN npm install # Copy the app source code to the working directory COPY . .