In my AWS CDK project, I have a RestApi
and a couple of resources with methods having LambdaIntegration
configured for them. For all requests made to the API gateway methods, I want to append a common custom header to make sure all methods work well from my website, without CORS related problems. How can I do that?
Asked
Active
Viewed 838 times
2

bappak
- 865
- 8
- 23
-
Do you mean any random custom header, or are you specifically trying to fix CORS errors? – Jul 24 '21 at 02:08
-
1Does this answer your question? [enabling CORS for AWS API gateway with the AWS CDK](https://stackoverflow.com/questions/52752201/enabling-cors-for-aws-api-gateway-with-the-aws-cdk) – hoangdv Jul 24 '21 at 04:08