A company runs an unauthenticated static website (www.example.com) that includes a registration form for users. The website uses Amazon S3 for hosting and uses Amazon CloudFront as the content delivery network with AWS WAF configured. When the registration form is submitted, the website calls an Amazon API Gateway API endpoint that invokes an AWS Lambda function to process the payload and forward the payload to an external API call.
During testing, a solutions architect encounters a cross-origin resource sharing (CORS) error. The solutions architect confirms that the CloudFront distribution origin has the Access-Control-Allow-Origin header set to www.example.com.
What should the solutions architect do to resolve the error?
gd1
Highly Voted 1 year, 6 months agoduriselvan
Most Recent 1 year agocareer360guru
1 year, 1 month agoseverlight
1 year, 1 month agoggrodskiy
1 year, 5 months agorrrrrrrrrr1
1 year, 5 months agoNikkyDicky
1 year, 5 months agojavitech83
1 year, 6 months agoSmileyCloud
1 year, 6 months agoAlabi
1 year, 6 months agoMaria2023
1 year, 6 months agojavitech83
1 year, 6 months ago