Skip to content

Commit

Permalink
Merge pull request #6 from deckerego/cors
Browse files Browse the repository at this point in the history
Working implementation with CORS
  • Loading branch information
deckerego authored Feb 10, 2024
2 parents ec2f56c + dac3409 commit 1b74f62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ A simple API Gateway in AWS that stores inbound HTTPS calls as SQS FIFO messages

The gateway exists as a Serverless project with AWS-specific resources. Once you have your API keys for an AWS account, the gateway can be deployed with:

npm install
serverless deploy -v --aws-profile <PROFILE>
npm ci
serverless deploy --aws-profile <PROFILE>


## Sending HTTP Requests
Expand Down
4 changes: 2 additions & 2 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ service: sqsgateway
provider:
name: aws
stage: ${opt:stage, 'dev'}
runtime: nodejs12.x
runtime: nodejs18.x
environment:
SQS_HTTP_URL:
Ref: AsyncAPIQueue
Expand Down Expand Up @@ -45,7 +45,7 @@ functions:
- http:
path: submit
method: POST
cors: false
cors: true

resources:
- ${file(resources/sqs.yml)}
Expand Down

0 comments on commit 1b74f62

Please sign in to comment.