1.0.4 • Published 3 years ago

hyper-express-cors v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Hyper-Express CORS Middleware

Usage

import useCORS from 'hyper-express-cors'

const domain = 'http://localhost:8080'


webserver.use(
	useCORS({ origin: domain, credentials: true })
)

webserver.options('/*', useCORS({
	origin: domain,
	credentials: true,
	optionsRoute: true
}))

webserver.listen(3000)
1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago