https://supertokens.com/ logo
#support-questions
Title
# support-questions
r

rp

10/23/2021, 1:51 PM
Can you please provide some handler to the
middleware()
like so:
Copy code
module.exports.handler = middy(middleware((event, context, callback) => {
  console.log("middleware did not find any route to handle...");
})).use(cors({
    origin: getBackendConfig().appInfo.websiteDomain,
    credentials: true,
    headers: ["Content-Type", ...supertokens.getAllCORSHeaders()].join(", "),
    methods: "OPTIONS,POST,GET,PUT,DELETE"
}));
And see if the message "middleware did not find any route to handle..." get's printed out or not.