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

pogseal

01/19/2022, 5:41 AM
and assuming don't need this?
Copy code
// 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()],
  });
2 Views