test
This commit is contained in:
2
index.js
2
index.js
@@ -15,7 +15,7 @@ const app = express();
|
|||||||
var httpServer = http.createServer(app);
|
var httpServer = http.createServer(app);
|
||||||
// adding Helmet to enhance your API's security
|
// adding Helmet to enhance your API's security
|
||||||
app.use(helmet());
|
app.use(helmet());
|
||||||
// using bodyParser to parse JSON bodies into JS objects
|
// using bodyParser to parse JSON bodies into JS objects
|
||||||
app.use(bodyParser.json());
|
app.use(bodyParser.json());
|
||||||
// enabling CORS for all requests
|
// enabling CORS for all requests
|
||||||
app.use(cors());
|
app.use(cors());
|
||||||
|
|||||||
Reference in New Issue
Block a user