Search⌘ K
AI Features

Working With Cross-Origin Resource Sharing

Understand how cross-origin resource sharing (CORS) enables secure communication between different domains in serverless apps. Learn about pre-flight requests, necessary HTTP headers, and how to configure CORS policies on AWS S3 buckets to avoid common browser errors when accessing resources asynchronously.

Cross-origin resource sharing (CORS)

Client code will need to access resources from S3 and API Gateway, which will be on different domains. To prevent online fraud, browsers request special authorisation ...