Added cors
This commit is contained in:
parent
7c1de446eb
commit
760fc867a3
1
index.js
1
index.js
@ -4,6 +4,7 @@ const economicSystemRoutes = require('./routes/economicSystem');
|
|||||||
|
|
||||||
// Middleware
|
// Middleware
|
||||||
app.use(express.json());
|
app.use(express.json());
|
||||||
|
app.use(cors());
|
||||||
|
|
||||||
// Routes
|
// Routes
|
||||||
app.use('/api/economicSystem', economicSystemRoutes);
|
app.use('/api/economicSystem', economicSystemRoutes);
|
||||||
|
|||||||
@ -18,7 +18,8 @@
|
|||||||
"homepage": "https://github.com/ranchimall/economicsystem-tokenroom#readme",
|
"homepage": "https://github.com/ranchimall/economicsystem-tokenroom#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"googleapis": "",
|
"googleapis": "",
|
||||||
"express": ""
|
"express": "",
|
||||||
|
"cors":""
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node index.js"
|
"start": "node index.js"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user