Hello Friends, I created a simple lambda function in Java that receives 2 parameters for Json, and returns a sum.
The trigger for this function is an ApiGate HTTP.
I created a small html application and published it on S3, this is the access link http://first-spa.s3-website-us-east-1.amazonaws.com.
When accessing through my browsers the following error is returned:
Access to XMLHttpRequest at 'https://fsqnj3wn24.execute-api.us-east-1.amazonaws.com/portal/MyFunction' from origin 'http: //first-spa.s3-website-us-east-1. amazonaws.com 'has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No' Access-Control-Allow-Origin 'header is present on the requested resource.
Can someone help me please?