pogseal
01/19/2022, 5:41 AM// NOTE: We need CORS only if we are querying the APIs from a different origin
await NextCors(req, res, {
methods: ["GET", "HEAD", "PUT", "PATCH", "POST", "DELETE"],
origin: "https://",
credentials: true,
allowedHeaders: ["content-type", ...supertokens.getAllCORSHeaders()],
});