Can you please provide some handler to the `middle...
# support-questions
r
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.