Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이준성
/
khuwitch
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Jinsu Park
2020-12-06 23:24:01 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c7e352e3b5c0e24d3f2bcabee1d3283e45f6885a
c7e352e3
1 parent
24b8f503
CORS 허용 설정
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
server/socket_server.js
server/socket_server.js
View file @
c7e352e
const
config
=
require
(
'./config/config'
)
const
app
=
require
(
'express'
)();
const
cors
=
require
(
'cors'
)
app
.
use
(
cors
())
//express 기본 응답에 대한 cors
const
http
=
require
(
'http'
).
Server
(
app
);
const
io
=
require
(
'socket.io'
)(
http
);
const
io
=
require
(
'socket.io'
)(
http
,
{
cors
:{
origin
:
"*"
,
}
});
const
papago
=
require
(
'./openAPIs/papago_api'
);
const
tmi
=
require
(
'tmi.js'
);
...
...
Please
register
or
login
to post a comment