https://pulumi.com logo
#aws
Title
p

powerful-furniture-83753

12/11/2020, 10:39 AM
I've got an API gateway setup using crosswalk. I'd like to add CORS to one of my endpoints (which has a Cognito Authorizer associated with it)... i can't seem to find any examples/docs of how to do this. Anyone have any ideas?
w

witty-candle-66007

12/11/2020, 1:53 PM
I’m not sure this helps, but the awsx package for the api gateway (https://github.com/pulumi/pulumi-awsx/blob/master/nodejs/awsx/apigateway/api.ts) has a
gatwayResponses
input property that indicates it can be used to address CORS.
p

powerful-furniture-83753

12/12/2020, 12:48 PM
thanks. I can't really find any usage examples tho, and it's documented as relating to swagger, so i'm not sure it's what i need.