fix(striker-ui-api): enable CORS for all origins

main
Tsu-ba-me 3 years ago
parent 3b123dd671
commit 5d0dbe3c5f
  1. 2
      striker-ui-api/app.js

@ -1,3 +1,4 @@
const cors = require('cors');
const express = require('express');
const path = require('path');
@ -9,6 +10,7 @@ const filesRouter = require('./routes/files');
const app = express();
app.use(express.json());
app.use(cors());
app.use(path.join(API_ROOT_PATH, 'echo'), echoRouter);
app.use(path.join(API_ROOT_PATH, 'files'), filesRouter);

Loading…
Cancel
Save