Skip to content

Commit

Permalink
Merge pull request #29 from Crazy-Cow/CD-72
Browse files Browse the repository at this point in the history
fix: cors 최종 버전
  • Loading branch information
ddubbu-dev authored Nov 15, 2024
2 parents ab07386 + d71d192 commit 1b6664e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ import { Server } from 'socket.io'
import { initInGmaeSocket } from './game/server'

const port = process.env.PORT
const corsOption: CorsOptions = {
origin: 'http://localhost:5173',
}
const corsOption: CorsOptions = { origin: '*' }

const app: Express = express()
app.use(cors(corsOption))
Expand Down

0 comments on commit 1b6664e

Please sign in to comment.