Re:Build a 100% Serverless Website with AWS in 7 Easy Steps
by nigealj on Thursday October 25, 2018 @11:53AM
(#18301862)
So do you proxy your calls from S3 to a serverless service? And do you handle cross origin calls via CORS? Just curious because I've never used serverless before.
[ Parent
| on HN ]
Re:Build a 100% Serverless Website with AWS in 7 Easy Steps
by benmanns on Thursday October 25, 2018 @11:59AM
(#18301927)
You can use JavaScript on the frontend to call a Lambda function that you 100% control (including CORS, etc). You can use this to do things like authentication, authorization, and rate limiting, as well, versus just giving open access to an internal datastore.
Re:Build a 100% Serverless Website with AWS in 7 Easy Steps
by stephengillie on Thursday October 25, 2018 @12:07PM
(#18301975)
CORS can be set on the S3 bucket - wide open is the default setting when you open the CORS properties in the S3 console.