https://supertokens.com/ logo
#general
Title
# general
s

Sun Walker

03/25/2020, 10:19 PM
next question
Copy code
app.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?