Skip to content

Commit

Permalink
Merge pull request #27 from astartes22/dev
Browse files Browse the repository at this point in the history
edit cors setting
  • Loading branch information
Dev-SeungcheolLee authored Nov 16, 2020
2 parents 1a52602 + a362aa9 commit 7d39527
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ app.use(
app.use(express.json());
app.use(
cors({
origin: ['http://localhost:3000', 'http://localhost:3001'],
origin: [
'http://localhost:3000',
'http://localhost:3001',
'http://to-go-list-client.s3-website.ap-northeast-2.amazonaws.com'],
methods: ['GET', 'POST', 'PATCH'],
credentials: true
})
Expand Down

0 comments on commit 7d39527

Please sign in to comment.