API Gateway CORS error after update aws-cdk update to 1.135.0

0

I have an http api gateway with a LambdaProxyIntegration, using python, aws-cdk v1.134.0

After trying to upgrade to v1.135.0, and changing it to HttpLambdaIntegration, I'm getting the following error.

Access to XMLHttpRequest at 'https://{domain}.execute-api.{region}.amazonaws.com/dev/v1/web/...' from origin 'https://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.

I enabled logging on the for the API stage and I'm seeing the requests, but I'm not seeing the request get logged in the lambda logs. Also, my CORS configuration did not change.

Any advice on how to resolve this?

已提問 2 年前檢視次數 78 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南