diff --git a/packages/server/packages/play-node-go/play-node-go/src/config.js b/packages/server/packages/play-node-go/play-node-go/src/config.js index 2113b61..b16d07b 100644 --- a/packages/server/packages/play-node-go/play-node-go/src/config.js +++ b/packages/server/packages/play-node-go/play-node-go/src/config.js @@ -4,7 +4,7 @@ const env = runtimeEnv(); const production = { apiAddress: 'https://node-go-api.herokuapp.com/api/v1', endpoint: 'https://play-node-go.herokuapp.com', - authAddress: 'https://node-go.herokuapp.com/auth', + authAddress: 'https://node-go-api.herokuapp.com/auth', socketAddress: 'https://node-go-api.herokuapp.com' } diff --git a/packages/server/packages/play-node-go/server/server.js b/packages/server/packages/play-node-go/server/server.js index b009061..0a85883 100644 --- a/packages/server/packages/play-node-go/server/server.js +++ b/packages/server/packages/play-node-go/server/server.js @@ -28,11 +28,6 @@ const corsOptions = { app.options('*', cors(corsOptions)); app.use('*', cors(corsOptions)); -app.use((req, res, next) => { - res.header("Access-Control-Allow-Origin", allowedOrigin); - res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept"); - next(); -}); // disable logging for tests if (process.env.NODE_ENV !== 'test') app.use(logger('dev'));