From c204ba3dc9ae4f5d39b8361d34f7ea2e0b32db2f Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Wed, 20 Sep 2023 19:44:24 -0600 Subject: [PATCH] fix: :ambulance: Add path to options request --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 9b5cfd5..7b8f09f 100644 --- a/index.js +++ b/index.js @@ -18,7 +18,7 @@ const mailer = require('nodemailer').createTransport({ }) app.use(express.json()).use(cors()) - .options().post('/', async (req, res) => { + .options('/').post('/', async (req, res) => { // Parse from address let from