Skip to content

Commit

Permalink
always enable cors so able to connect from prod domains
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed Aug 29, 2024
1 parent 00e7d4a commit aa9400e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const app = express()

const isProd = process.argv.includes('--prod')
app.use(compression())
// app.use(cors())
app.use(cors())
app.use(netApi({ allowOrigin: '*' }))
if (!isProd) {
app.use('/sounds', express.static(path.join(__dirname, './generated/sounds/')))
Expand Down

0 comments on commit aa9400e

Please sign in to comment.