Skip to content

Commit

Permalink
Enable CORS Pre-Flight
Browse files Browse the repository at this point in the history
  • Loading branch information
n1eko committed Mar 29, 2024
1 parent dfb25ae commit 743d642
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const serversRouter = require('./controllers/servers')
const logsRouter = require('./controllers/logs')

app.use(cors());
app.options('*', cors());
app.use(express.json());

app.use('/api-docs', swaggerUI.serve, swaggerUI.setup(require('./docs/openapi.json')));
app.use('/api/clients', usersRouter)
app.use('/api/channels', channelsRouter)
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 743d642

Please sign in to comment.