aboutsummaryrefslogtreecommitdiff
path: root/app.ts
diff options
context:
space:
mode:
Diffstat (limited to 'app.ts')
-rw-r--r--app.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/app.ts b/app.ts
index 0dce8b6..c4fb0e6 100644
--- a/app.ts
+++ b/app.ts
@@ -2,6 +2,7 @@ import feathers from '@feathersjs/feathers';
import express from '@feathersjs/express';
import socketio from '@feathersjs/socketio';
import '@feathersjs/transport-commons';
+import cors from 'cors';
import services from './services';
@@ -14,6 +15,7 @@ app.use(express.static(__dirname));
app.configure(express.rest());
app.configure(socketio());
app.use(express.errorHandler());
+app.use(cors());
app.configure(services);