From 3840ffe9b53aeb346e5060b9c594cbd7e9b5ffc5 Mon Sep 17 00:00:00 2001 From: Dobbymin Date: Mon, 5 Aug 2024 00:48:34 +0900 Subject: [PATCH] =?UTF-8?q?docs(README):=206=EC=A3=BC=EC=B0=A8=20=EC=A7=88?= =?UTF-8?q?=EB=AC=B8=20=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 63a8a1e6d..4e6996a7a 100644 --- a/README.md +++ b/README.md @@ -1 +1,21 @@ # react-deploy + +# ๐Ÿ“ Requirements + +## 6์ฃผ์ฐจ ์งˆ๋ฌธ + +### ์งˆ๋ฌธ 1. SPA ํŽ˜์ด์ง€๋ฅผ ์ •์  ๋ฐฐํฌ๋ฅผ ํ•˜๋ ค๊ณ  ํ•  ๋•Œ Vercel์„ ์‚ฌ์šฉํ•˜์ง€ ์•Š๊ณ  ํ•œ๋‹ค๋ฉด ์–ด๋–ป๊ฒŒ ํ•  ์ˆ˜ ์žˆ์„๊นŒ์š”? + +github page๋ฅผ ์ด์šฉํ•˜๊ฑฐ๋‚˜ Vercel ๊ณผ ๋น„์Šทํ•œ Netlify ๋˜ํ•œ ์‚ฌ์šฉ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค. ์ด๊ฒฝ์šฐ workflow์— yaml ํŒŒ์ผ์„ ์ž‘์„ฑํ•˜์—ฌ CI/CD๋ฅผ ๊ตฌํ˜„ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋˜ํ•œ ๊ณผ๊ฑฐ์— ec2์— nginx๋ฅผ ์ด์šฉํ•ด ๋ฐฐํฌ๋ฅผ ํ•ด๋ณธ ๊ฒฝํ—˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค. + +### ์งˆ๋ฌธ 2. CSRF๋‚˜ XSS ๊ณต๊ฒฉ์„ ๋ง‰๋Š” ๋ฐฉ๋ฒ•์€ ๋ฌด์—‡์ผ๊นŒ์š”? + +1. CSRF ๊ณต๊ฒฉ์„ ๋ง‰๋Š” ๋ฐฉ๋ฒ• + HttpOnly ์†์„ฑ์„ ์ฟ ํ‚ค์— ์„ค์ •ํ•˜์—ฌ ํด๋ผ์ด์–ธํŠธ์ธก JavaScript์—์„œ ์ฟ ํ‚ค์— ์ ‘๊ทผํ•˜์ง€ ๋ชปํ•˜๋„๋ก ํ•˜๋Š” ๋ฐฉ๋ฒ•์ด ์žˆ์Šต๋‹ˆ๋‹ค. + +2. XXS ๊ณต๊ฒฉ์„ ๋ง‰๋Š” ๋ฐฉ๋ฒ• + ์ฟ ํ‚ค์— SameSite ์†์„ฑ์„ ์„ค์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•์ด ์žˆ์Šต๋‹ˆ๋‹ค. ๋˜ํ•œ CSRF ํ† ํฐ์„ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•๋„ ์žˆ์Šต๋‹ˆ๋‹ค. + +### ์งˆ๋ฌธ 3. ๋ธŒ๋ผ์šฐ์ € ๋ Œ๋”๋ง ์›๋ฆฌ์—๋Œ€ํ•ด ์„ค๋ช…ํ•ด์ฃผ์„ธ์š”. + +๋ธŒ๋ผ์šฐ์ €์˜ ๋ Œ๋”๋ง ์›๋ฆฌ๋Š” HTML์„ ํŒŒ์‹ฑํ•˜์—ฌ DOM ํŠธ๋ฆฌ๋ฅผ ๋งŒ๋“ค๊ณ , CSS๋ฅผ ํŒŒ์‹ฑํ•˜์—ฌ CSSOM ํŠธ๋ฆฌ๋ฅผ ๋งŒ๋“  ๋‹ค์Œ ์ด๋ฅผ ๊ฒฐํ•ฉํ•˜์—ฌ ๋ Œ๋”ํŠธ๋ฆฌ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค. ์ด ๋ Œ๋” ํŠธ๋ฆฌ๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ์š”์†Œ๋“ค์˜ ๋ ˆ์ด์•„์›ƒ์„ ๊ณ„์‚ฐํ•œ ํ›„, ๊ณ„์‚ฐ๋œ ๋ ˆ์ด์•„์›ƒ ์ •๋ณด๋ฅผ ์‚ฌ์šฉํ•ด ์š”์†Œ๋“ค์„ ํ”ฝ์…€ ๋‹จ์œ„๋กœ ํ™”๋ฉด์— ๊ทธ๋ฆฌ๋Š” ํŽ˜์ธํŒ…์„ ๊ฑฐ์ณ ์ตœ์ข…์ ์œผ๋กœ ์—ฌ๋Ÿฌ ๋ ˆ์ด์–ด๋ฅผ ํ•ฉ์ณ ํ™”๋ฉด์— ํ‘œ์‹œํ•˜๋Š” ๊ณผ์ •์ž…๋‹ˆ๋‹ค.