yes but this is all from the docs: ```import super...
# support-questions-legacy
a
yes but this is all from the docs:
Copy code
import supertokens from "supertokens-node"
import { middleware } from "supertokens-node/framework/awsLambda"
import middy from "@middy/core"
import cors from "@middy/http-cors"
import { getBackendConfig } from "../../supertokensConfig"

supertokens.init(getBackendConfig())

module.exports.handler = middy(middleware()).use(
  cors({
    origin: getBackendConfig().appInfo.websiteDomain,
    credentials: true,
    headers: ["Content-Type", ...supertokens.getAllCORSHeaders()].join(", "),
    methods: "OPTIONS,POST,GET,PUT,DELETE",
  }),
)