|
|
|
|
24
|
|
24
|
|
25
|
const io = socketIO(server, {
|
25
|
const io = socketIO(server, {
|
26
|
handlePreflightRequest: function (req, res) {
|
26
|
handlePreflightRequest: function (req, res) {
|
27
|
- var headers = {
|
|
|
|
|
27
|
+ const headers = {
|
28
|
"Access-Control-Allow-Headers": "Content-Type, Authorization",
|
28
|
"Access-Control-Allow-Headers": "Content-Type, Authorization",
|
29
|
"Access-Control-Allow-Origin":
|
29
|
"Access-Control-Allow-Origin":
|
30
|
(req.header && req.header.origin) || "https://excalidraw.com",
|
30
|
(req.header && req.header.origin) || "https://excalidraw.com",
|