Builds for
1 pipeline
failed
in
1 minute 19 seconds
CORS의 origin을 임시로 와일드카드로 설정
Showing
1 changed file
with
5 additions
and
1 deletions
| ... | @@ -14,7 +14,11 @@ export class Server { | ... | @@ -14,7 +14,11 @@ export class Server { |
| 14 | 14 | ||
| 15 | const app = express(); | 15 | const app = express(); |
| 16 | const server = createServer(app); | 16 | const server = createServer(app); |
| 17 | - this.io = new socketIo.Server(server); | 17 | + this.io = new socketIo.Server(server, { |
| 18 | + cors: { | ||
| 19 | + origin: '*' | ||
| 20 | + } | ||
| 21 | + }); | ||
| 18 | 22 | ||
| 19 | const roomManager = new RoomManager(); | 23 | const roomManager = new RoomManager(); |
| 20 | 24 | ... | ... |
-
Please register or login to post a comment