Skip to content

Commit

Permalink
#fixes add cors
Browse files Browse the repository at this point in the history
  • Loading branch information
Linoy339 committed Mar 8, 2023
1 parent 1d2c855 commit 717617a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ const http2 = require("http2")
const jwt = require("jsonwebtoken")
const aws = require('aws-sdk')
const express = require("express")
const cors = require("cors")
const { response } = require("express")
const app = express()

app.use(cors())
// Construct the AWS objects.
aws.config.update({
region: process.env.AWS_SES_REGION || "us-east-1",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"dependencies": {
"aws-sdk": "^2.802.0",
"cors": "^2.8.5",
"express": "^4.17.1",
"jsonwebtoken": "^8.5.1",
"nano": "^8.2.2"
Expand Down

0 comments on commit 717617a

Please sign in to comment.