Skip to content

Instantly share code, notes, and snippets.

@avinashsivaraman
Created September 9, 2017 05:08
Show Gist options
  • Save avinashsivaraman/9ee96faff06d9fae4e7d490e98b7d17a to your computer and use it in GitHub Desktop.
Save avinashsivaraman/9ee96faff06d9fae4e7d490e98b7d17a to your computer and use it in GitHub Desktop.
To Enable CORS in express server
const express = require('express');
const cors = require('cors');
const app = express();
app.use(cors())
app.listen(8080)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment