Skip to content

Commit 2fb3140

Browse files
authored
release: ๋ฐฐํฌ v2.0.2 #64
release: ๋ฐฐํฌ v2.0.2 PR: ๋กœ๊ทธ์ธ ๋ฐ ๋””์ž์ธ ์ผ๋ถ€ ์ˆ˜์ • - CSRF ํ† ๊ทผ ์ €์žฅ ๋ฐฉ์‹ ์ˆ˜์ • - Express ์—๋Ÿฌ ๋กœ๊ทธ ์ž์„ธํžˆ - ํ”„๋ก ํŠธ ๋ฐ•์Šค ์ƒํ•˜ ๊ธธ์ด ๊ณ ์ •
2 parents deba63e + e214245 commit 2fb3140

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

โ€ŽBack/routes/api.jsโ€Ž

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ router.get("/getdatas", async function (req, res, next) {
9696
res.status(404).send("๋ฐ์ดํ„ฐ ์—†์Œ");
9797
}
9898
} catch (err) {
99+
console.error("๋ฐ์ดํ„ฐ ์ฝ๊ธฐ ์˜ค๋ฅ˜:", err);
99100
res.status(500).send("์„œ๋ฒ„ ์˜ค๋ฅ˜");
100101
}
101102
});
@@ -222,7 +223,7 @@ router.post("/login", async function (req, res, next) {
222223
.json({ message: "์•„์ด๋”” ๋˜๋Š” ๋น„๋ฐ€๋ฒˆํ˜ธ๊ฐ€ ์ž˜๋ชป๋˜์—ˆ์Šต๋‹ˆ๋‹ค." });
223224
}
224225
} catch (err) {
225-
console.error(err);
226+
console.error("๋กœ๊ทธ์ธ ์˜ค๋ฅ˜", err);
226227
res.status(500).send("์„œ๋ฒ„ ์˜ค๋ฅ˜");
227228
}
228229
});
@@ -281,10 +282,7 @@ function authenticateToken(req, res, next) {
281282

282283
// CSRF ํ† ํฐ์„ ์„ธ์…˜์— ์ €์žฅํ•˜๊ณ  ์žฌ์‚ฌ์šฉ
283284
router.get("/csrf-token", function (req, res) {
284-
if (!req.session.csrfToken) {
285-
req.session.csrfToken = req.csrfToken();
286-
}
287-
res.json({ csrfToken: req.session.csrfToken });
285+
res.json({ csrfToken: req.csrfToken() });
288286
});
289287

290288
module.exports = router;

โ€ŽFront/src/app/css/page.cssโ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ h1 {
107107
.main-box-1 {
108108
flex: 1;
109109
max-width: 650px;
110+
max-height: 70vh;
110111
}
111112

112113
/* ์˜ค๋ฅธ์ชฝ ์ปฌ๋Ÿผ (๋ฆฌ๋ทฐ) */
@@ -118,7 +119,7 @@ h1 {
118119
border-radius: var(--radius-lg);
119120
box-shadow: var(--shadow-medium);
120121
border: 1px solid var(--border-color);
121-
max-height: 132.5vh;
122+
max-height: 70vh;
122123
overflow-y: auto;
123124
}
124125

0 commit comments

Comments
ย (0)