skip to Main Content

Existing solutions not working- (AWS Lambda Api) The value of the 'Access-Control-Allow-Credentials' header in the response is '' which must be 'true'

my lambda function module.exports.handler = async(event, context, callback) => { return { statusCode: 200, headers: { "Access-Control-Allow-Credentials" : 'true', 'Access-Control-Allow-Origin': 'mydomain_name', 'Access-Control-Allow-Methods':'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT', 'Access-Control-Allow-Headers':'content-type,authorization', }, body: JSON.stringify({ message: `Charge processed succesfully!`, success:true, }), } } error -" The value of the…

VIEW QUESTION

Python AWS Lambda Execution New Update

Update I changed the params to receive the data directly from a JSON dump to see if that fixed the JSON load issue. Received a new error: (b'{n "errorType": "ValidationMetadataException",n "errorMessage": "The a' b'rgument is null or empty. Provide an…

VIEW QUESTION
Back To Top
Search