diff --git a/package.json b/package.json index f1c864ce..f55d5d85 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "treetracker", - "version": "1.38.0", + "version": "1.38.4", "description": "https://documenter.getpostman.com/view/10112806/SWTD8H5x?version=latest", "private": true, "main": "server/server.js", @@ -102,4 +102,4 @@ "engines": { "node": ">= 16" } -} +} \ No newline at end of file diff --git a/server/app.js b/server/app.js index 031d469e..1a5f3196 100644 --- a/server/app.js +++ b/server/app.js @@ -6,17 +6,8 @@ const { errorHandler, handlerWrapper } = require('./utils/utils'); const app = express(); -const corsOptions = { - origin: '*', - methods: 'GET,HEAD,PUT,PATCH,POST,DELETE', - credentials: true, - optionsSuccessStatus: 204, -}; - if (process.env.NODE_ENV === 'development') { app.use(cors()); -} else { - app.use(cors(corsOptions)); } /* @@ -72,4 +63,4 @@ app.get('*', function (req, res) { res.status(200).send(version); }); -module.exports = app; +module.exports = app; \ No newline at end of file