const
This commit is contained in:
parent
2d8d11e706
commit
5b174809e6
@ -24,7 +24,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":
|
||||||
(req.header && req.header.origin) || "https://excalidraw.com",
|
(req.header && req.header.origin) || "https://excalidraw.com",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user