softprops / serverless-localhost

MIT License
9 stars 6 forks source link

basic cors support #7

Closed softprops closed 5 years ago

softprops commented 5 years ago

What did you implement:

basics of cors

Closes: #xxx

What did you need this functionality for

start to #6

How did you verify your change:

invoked api in browser with

fetch("http://localhost:3000/?foo=" + +new Date()).then(console.log).catch(console.error)

What (if anything) would need to be called out in the CHANGELOG for the next release:

added basic cors support