「Webアプリ」と「Webアプリが使うAPI」を作成しているとき、同一オリジンにしたいことがあります。 Webアプリ: example.com Webアプリが使うAPI: example.com/v1/hello というわけで、試してみました。 おすすめの方 CloudFront DistributionをCloudFormationで作成したい方 CloudFront DistributionのオリジンにAPI Gatewayを設定したい方 APIを作成する sam init sam init \ --runtime python3.11 \ --name api-gateway-cloudfront-sample \ --app-template hello-world \ --no-tracing \ --no-application-insights \ --structured-