瀏覽代碼

fix lint

master
dwelle 4 年之前
父節點
當前提交
1cc554339d
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      src/index.ts

+ 2
- 1
src/index.ts 查看文件

24
   handlePreflightRequest: function (req, res) {
24
   handlePreflightRequest: function (req, res) {
25
     var headers = {
25
     var headers = {
26
       "Access-Control-Allow-Headers": "Content-Type, Authorization",
26
       "Access-Control-Allow-Headers": "Content-Type, Authorization",
27
-      "Access-Control-Allow-Origin": (req.header && req.header.origin) || "https://excalidraw.com",
27
+      "Access-Control-Allow-Origin":
28
+        (req.header && req.header.origin) || "https://excalidraw.com",
28
       "Access-Control-Allow-Credentials": true,
29
       "Access-Control-Allow-Credentials": true,
29
     };
30
     };
30
     res.writeHead(200, headers);
31
     res.writeHead(200, headers);

Loading…
取消
儲存