Skip to content

Commit

Permalink
adds cors for node.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nikbabchenko committed Jan 7, 2018
1 parent c38ce1b commit e4337a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
const express = require('express');
const app = express();
const path = require('path');
const cors = require('cors');

// ading cors
app.use(cors());

// If an incoming request uses
// a protocol other than HTTPS,
Expand Down

0 comments on commit e4337a8

Please sign in to comment.