79601732

Date: 2025-05-01 10:54:55
Score: 0.5
Natty:
Report link

Not exactly the perfect answer, but setting the CORS AllowedOrigins to a wildcard does work:

new Bucket(this, "MyBucket", new BucketProps()
{
    BucketName = "myBucketName",
    //....
    Cors = 
    [
        new CorsRule()
        {
            AllowedHeaders = //...
            AllowedMethods = //...
            AllowedOrigins = ["https://webapp-*.transfer-webapp.<REGION>.on.aws"]
        }
    ]
});
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: danwag