Tengo unas apis subidas a AWS el cual intento consumirlas en el front o algun cliente para las apis y estoy obteniendo el siguiente error: 400 ERROR - The request could not be satisfied. Bad request. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner. If you provide content to customers through CloudFront
Intente ponerle los siguientes headers en el response de los apis y aun asi sigue sin funcionar.
headers: {
"Access-Control-Allow-Headers": "Content-Type",
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "OPTIONS,POST,GET",
},
Tambien intente habilitar cors en API Gateway pero tampoco funciono.