fix: change default port to 3001

This commit is contained in:
Liordino Neto 2020-07-31 16:32:34 -03:00 committed by Josh Harvey
parent 994f823632
commit c3222362d7
2 changed files with 3 additions and 2 deletions

View file

@ -52,12 +52,12 @@ apolloServer.applyMiddleware({
app,
cors: {
credentials: true,
origin: devMode && 'https://localhost:3000'
origin: devMode && 'https://localhost:3001'
}
})
// cors on app for /api/register endpoint.
app.use(cors({ credentials: true, origin: devMode && 'https://localhost:3000' }))
app.use(cors({ credentials: true, origin: devMode && 'https://localhost:3001' }))
app.use('/id-card-photo', serveStatic(idPhotoCardBasedir, { index: false }))
app.use('/front-camera-photo', serveStatic(frontCameraBasedir, { index: false }))