const
This commit is contained in:
parent
feef876308
commit
2324199591
@ -22,7 +22,7 @@ server.listen(port, () => {
|
|||||||
|
|
||||||
const io = socketIO(server, {
|
const io = socketIO(server, {
|
||||||
handlePreflightRequest: function (req, res) {
|
handlePreflightRequest: function (req, res) {
|
||||||
var headers = {
|
const headers = {
|
||||||
"Access-Control-Allow-Headers": "Content-Type, Authorization",
|
"Access-Control-Allow-Headers": "Content-Type, Authorization",
|
||||||
"Access-Control-Allow-Origin": "*",
|
"Access-Control-Allow-Origin": "*",
|
||||||
"Access-Control-Allow-Credentials": true,
|
"Access-Control-Allow-Credentials": true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user