Skip to content

Commit

Permalink
workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewquang512 committed Dec 16, 2023
1 parent a4d9ac6 commit ac52355
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,11 @@ export const handler = startServerAndCreateLambdaHandler(
handlers.createAPIGatewayProxyEventRequestHandler(),
{
middleware: [
async (event) => {
console.log('###? received event=' + JSON.stringify(event));
},
async (event, lambdaContext, callback) => {
console.log('###? received event' + JSON.stringify(event));
// Handle CORS preflight request
if (event.httpMethod === 'OPTIONS') {
console.log('###? received event OPTIONS' + JSON.stringify(event));
const response = {
statusCode: 200,
headers: {
Expand Down

0 comments on commit ac52355

Please sign in to comment.