Update: Cors Test
This commit is contained in:
parent
958b4898f0
commit
b9c3e7d0f3
1 changed files with 3 additions and 0 deletions
|
|
@ -3,6 +3,9 @@ const express = require('express');
|
|||
const app = express();
|
||||
const port = process.env.PORT || 3000;
|
||||
|
||||
const cors = require('cors');
|
||||
app.use(cors());
|
||||
|
||||
app.use(express.static(__dirname + '/dist/frontend-admin'));
|
||||
app.get('/*', function(req,res) {
|
||||
res.sendFile(path.join(__dirname+ '/dist/frontend-admin/index.html'));
|
||||
|
|
|
|||
Reference in a new issue