Update server.js
This commit is contained in:
parent
1c729b9c8d
commit
bf6f102307
1 changed files with 0 additions and 8 deletions
|
|
@ -3,14 +3,6 @@ const express = require('express');
|
|||
const app = express();
|
||||
const port = process.env.PORT || 3000;
|
||||
|
||||
const cors = require('cors');
|
||||
app.use(cors({
|
||||
origin: [
|
||||
'https://api-polynotfound.herokuapp.com/', 'http://127.0.0.1:3000'
|
||||
],
|
||||
credentials: true
|
||||
}));
|
||||
|
||||
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