1.0.4 • Published 2 years ago

hyper-express-cors v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago