Skip to content

Instantly share code, notes, and snippets.

@miguelmota
Created February 7, 2023 21:51
Show Gist options
  • Save miguelmota/fbabd0cad06dab62631d6f430421bfda to your computer and use it in GitHub Desktop.
Save miguelmota/fbabd0cad06dab62631d6f430421bfda to your computer and use it in GitHub Desktop.
Node.js CORS express.js server example
import express from 'express'
import cors from 'cors'
const app = express()
app.use(cors())
app.options('*', cors())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment