File tree Expand file tree Collapse file tree 1 file changed +22
-10
lines changed Expand file tree Collapse file tree 1 file changed +22
-10
lines changed Original file line number Diff line number Diff line change @@ -339,16 +339,28 @@ Resources:
339
339
Properties :
340
340
BucketName : !Sub "${ResumeS3BucketName}-${RunEnvironment}"
341
341
CorsConfiguration :
342
- CorsRules :
343
- - AllowedHeaders :
344
- - ' *'
345
- AllowedOrigins :
346
- - ' *'
347
- AllowedMethods :
348
- - GET
349
- - PUT
350
- Id : CORSAllowAll
351
- MaxAge : 3600
342
+ !If
343
+ - IsProd
344
+ - CorsRules :
345
+ - AllowedHeaders :
346
+ - ' *'
347
+ AllowedOrigins :
348
+ - ' https://resumes.acm.illinois.edu'
349
+ AllowedMethods :
350
+ - GET
351
+ - PUT
352
+ Id : CORSAllowProdSite
353
+ MaxAge : 3600
354
+ - CorsRules :
355
+ - AllowedHeaders :
356
+ - ' *'
357
+ AllowedOrigins :
358
+ - ' http://localhost:5173'
359
+ AllowedMethods :
360
+ - GET
361
+ - PUT
362
+ Id : CORSAllowLocalhost
363
+ MaxAge : 3600
352
364
353
365
Outputs :
354
366
ApiUrl :
You can’t perform that action at this time.
0 commit comments