Sun Walker
03/25/2020, 10:19 PMapp.options("/like-comment", function (req, res) {
res.header("Access-Control-Allow-Origin", "some-origin.com");
res.header("Access-Control-Allow-Methods", "POST");
supertokens.setRelevantHeadersForOptionsAPI(res);
res.send("success");
});
Is there any way to do this once, for the whole app. Rather than on a per-request basis?