DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
socket io with cors
const
io
=
require
(
"socket.io"
)
(
httpServer
,
{
cors
:
{
origin
:
"*"
,
methods
:
[
"GET"
,
"POST"
]
}
}
)
;
Source by socket.io #
PREVIOUS
NEXT
Tagged:
#socket
#io
#cors
ADD COMMENT
Topic
COMMENT
Name
1+5 =
Submit