Browse Source

Add cors package

poeti8 7 years ago
parent
commit
cdc1f00206
2 changed files with 10 additions and 0 deletions
  1. 9 0
      package-lock.json
  2. 1 0
      package.json

+ 9 - 0
package-lock.json

@@ -4817,6 +4817,15 @@
       "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
       "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
     },
+    "cors": {
+      "version": "2.8.5",
+      "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz",
+      "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==",
+      "requires": {
+        "object-assign": "^4",
+        "vary": "^1"
+      }
+    },
     "cosmiconfig": {
       "version": "4.0.0",
       "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-4.0.0.tgz",

+ 1 - 0
package.json

@@ -34,6 +34,7 @@
     "bcryptjs": "^2.4.3",
     "body-parser": "^1.18.2",
     "cookie-parser": "^1.4.3",
+    "cors": "^2.8.5",
     "date-fns": "^1.29.0",
     "email-validator": "^1.1.1",
     "express": "^4.16.2",