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
- Host: GitHub
- URL: https://github.com/joacim-boive/lambda-cors-proxy
- Owner: joacim-boive
- License: mit
- Created: 2018-07-07T15:36:03.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-11T09:15:51.000Z (almost 7 years ago)
- Last Synced: 2025-01-19T17:49:41.319Z (3 months ago)
- Topics: aws, aws-lambda, aws-lambda-node, cors, cors-proxy, lambda, nodejs, proxy
- Language: JavaScript
- Homepage:
- Size: 68.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# lambda-cors-proxy
## A simple CORS enabled proxy ready to deploy to AWSYou 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