boomack 0.9.1 → 0.9.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "boomack",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "web app for displaying hyper-media items in concert with e.g. an IDE",
5
5
  "author": "Tobias Kiertscher <dev@mastersign.de>",
6
6
  "license": "MIT",
@@ -29,6 +29,7 @@
29
29
  "chardet": "^0.8.0",
30
30
  "commonmark": "^0.29.3",
31
31
  "cookie-parser": "^1.4.5",
32
+ "cors": "^2.8.5",
32
33
  "csv-parse": "^4.15.1",
33
34
  "ejs": "^2.7.4",
34
35
  "express": "^4.17.1",
@@ -4,6 +4,7 @@ const chalk = require('chalk');
4
4
  const async = require('async');
5
5
  const open = require('open');
6
6
  const express = require('express');
7
+ const cors = require('cors');
7
8
  const app = express();
8
9
  const http = require('http');
9
10
  const server = http.createServer(app);
@@ -306,6 +307,7 @@ function setupApp(cb) {
306
307
  log.http(`${req.method} ${req.url}`);
307
308
  next();
308
309
  });
310
+ app.use(cors());
309
311
  require('./routes/web-client').setup(app, io);
310
312
  require('./routes/panels').setup(app, io);
311
313
  require('./routes/presets').setup(app, io);