clemsonMakerspace / unified-makerspace

The Makerspace - now unified.
Apache License 2.0
9 stars 11 forks source link

Set Lambda CORS Access-Control-Allow-Origin via Environment Variable #63

Closed ophilli closed 11 months ago

ophilli commented 2 years ago

Similar to #61 it would be good to parameterize our Lambdas that they functions properly in our dev, beta, and prod stages.

Here's some examples of where the Lambda's CORS Access-Control-Allow-Origin is set: https://github.com/clemsonMakerspace/unified-makerspace/blob/mainline/cdk/visit/lambda_code/log_visit.py#L117 https://github.com/clemsonMakerspace/unified-makerspace/blob/mainline/cdk/visit/lambda_code/register_user.py#L43