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.
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.