@alizadefaig/pos-server 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server.js +1 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alizadefaig/pos-server",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "Server in express js with Proxy to Main server if need and will work with Electron JS",
5
5
  "homepage": "https://gitlab.com/faigalizade/pos-server#readme",
6
6
  "bugs": {
package/server.js CHANGED
@@ -13,10 +13,7 @@ const FormData = require("form-data");
13
13
  app.use(express.json());
14
14
  app.use(express.urlencoded({extended: true})); // Для обработки form-urlencoded
15
15
  app.use(upload.any()); // Позволяет обрабатывать файлы
16
- app.use(cors({
17
- origin: '*',
18
- credentials: true
19
- }));
16
+ app.use(cors());
20
17
  const runExpress = (conf = null) => {
21
18
  const appConfig = conf || require('./config.json');
22
19
  let PROXY_TARGET = appConfig.apiUrl;