An open API service indexing awesome lists of open source software.

https://github.com/joacim-boive/lambda-cors-proxy

A simple CORS enabled proxy ready to deploy to AWS
https://github.com/joacim-boive/lambda-cors-proxy

aws aws-lambda aws-lambda-node cors cors-proxy lambda nodejs proxy

Last synced: about 1 month ago
JSON representation

A simple CORS enabled proxy ready to deploy to AWS

Awesome Lists containing this project

README

        

# lambda-cors-proxy
## A simple CORS enabled proxy ready to deploy to AWS

You need to setup your AWS credentials first - use [aws config](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html)

npm i
sls deploy

**Boom!**

Check the console for your proxy endpoint.

Call it like: https://\.execute-api.\.amazonaws.com/production/get?url=\

**Pro Tip!**

Add `&debug` to the end of the URL to get the response body dumped to Cloudwatch.

- ES6/ES7 support using Webpack with sourcemaps
- Prettier enabled.
- Serverless configured for offline debugging

### Check package.json för NPM scripts
- npm start - start serverless offline
- npm run debug - start serverless offline in debug mode