serverless-patterns
serverless-patterns copied to clipboard
Add allowHeaders?
Do we need to add allow headers to api.yaml similar to here to avoid CORS errors?
Details: https://forums.aws.amazon.com/thread.jspa?threadID=337219&tstart=0
Hi! Which pattern are you referring to?
Sorry, apigw-sfn
Hi Asunar. If you wanted to call the service from a web browser then yes thank should help to avoid CORS errors: you could also add some configuration to the SAM template similar to this example: https://github.com/aws-samples/happy-path/blob/master/backend/template.yaml