Skip to content

Commit

Permalink
CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
trdecker committed Nov 12, 2023
1 parent 95211ab commit 0eb1a32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ const corsOptions = {
allowedHeaders: 'Content-Type, Authorization'
}

app.use(cors(corsOptions))

app.use(express.json())
app.use('/', apiRoutes)

Expand Down

0 comments on commit 0eb1a32

Please sign in to comment.