node8-express-template
node8-express-template copied to clipboard
Fixes #7 giving function dev the ability to handle OPTIONS CORS headers
Simple two line fix that enables the function developer to write to the response headers for the OPTIONS verb in the same way they already could for GET and POST. They can now branch in function code on event.method
for OPTIONS and handle CORS headers as they see fit.