codestates / codestates/Bobpago

[๐ŸšจErr Handling] Bobpago ๋ฐฐํฌ ํŽ˜์ด์ง€ AccessDenied ์—๋Ÿฌ

Open
#154 0 comments 0 reactions 1 assignee Claimed by @pinion7 View on GitHub
0.5h bug complete error handling
Dominant language
TypeScript
Stars
5
Forks
3
PR merge metrics
No merged PRs in 30d

Description

### ์–ด๋–ค ์—๋Ÿฌ์ธ๊ฐ€์š”?
- Bobpago ๋ฐฐํฌ ํŽ˜์ด์ง€์—์„œ ๋ฆฌ๋‹ค์ด๋ ‰ํŠธ ๋ฐ ์ƒˆ๋กœ๊ณ ์นจ ์‹œ์— AccessDenied ์—๋Ÿฌ ๋ฐœ์ƒ

### ์—๋Ÿฌ ๋ฉ”์‹œ์ง€

```bash
This XML file does not appear to have any style information associated with it. The document tree is shown below.

AccessDenied
Access Denied
0CXAPNW6EA9V5AGH
3k6bjcxt1bFsyDTFs9YwZ12gWrhbx1exoE96sfeuIsQfFFw8G4JnXe8bosi4kOarqT1g/nanF0I=

```

### ์—๋Ÿฌ ํ•ธ๋“ค๋ง ๋ฐฉ๋ฒ•

- ๊ตฌ๊ธ€๋ง์„ ํ†ตํ•ด ์›์ธ์„ ํŒŒ์•…ํ•˜์˜€๋‹ค. React์™€ CloudFront๊ฐ„์˜ ํ˜ธํ™˜์„ฑ ๋ฌธ์ œ์ด๋‹ค. ํ’€์–ด์„œ ์„ค๋ช…ํ•˜์ž๋ฉด, React์™€ ๊ฐ™์€ SPA๋ฅผ ํ†ตํ•ด S3 - CloudFront ๋ฐฐํฌ๋ฅผ ํ•˜๊ฒŒ๋˜๋ฉด Redirect๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•˜๊ฒŒ ๋˜๋Š”๋ฐ, ์ด๋Š” React์—์„œ ์‚ฌ์šฉํ•˜๋Š” react-router-dom๋•Œ๋ฌธ์ด๋‹ค. ํ˜ธํ™˜๋ฌธ์ œ๋กœ CloudFront์—์„œ redirect๋ฅผ 403์œผ๋กœ ๋ง‰์€ ๊ฒƒ ์ด๋‹ค. ๊ทธ๋ž˜์„œ ์ด๋ฅผ ํ•ด๊ฒฐํ•˜๋ ค๋ฉด CloudFront์—์„œ ์—๋Ÿฌ ํ•ธ๋“ค๋ง์„ ํ•ด์ค˜์•ผํ•œ๋‹ค.

- AWS CloudFront์— ์ ‘์†ํ•˜์—ฌ ์˜ค๋ฅ˜ ํŽ˜์ด์ง€์— ๋Œ€ํ•œ ์‚ฌ์šฉ์ž ์ •์˜ ์˜ค๋ฅ˜ ์‘๋‹ต์„ ์ƒ์„ฑํ•˜์˜€๋‹ค. 403์ด ๋œจ๋ฉด 200์œผ๋กœ ์ „ํ™˜๋  ์ˆ˜ ์žˆ๋„๋ก ์ „ํ™˜ํ•ด์ฃผ์—ˆ๋‹ค.

### ์—๋Ÿฌ ํ•ธ๋“ค๋ง์„ ์œ„ํ•ด ์ฐธ๊ณ ํ•œ ๋ ˆํผ๋Ÿฐ์Šค ๋งํฌ

[https://velog.io/@_junukim/CloudFront%EB%A1%9C-React%EC%95%B1-%EB%B0%B0%ED%8F%AC%ED%95%98%EA%B8%B0-2](https://velog.io/@_junukim/CloudFront%EB%A1%9C-React%EC%95%B1-%EB%B0%B0%ED%8F%AC%ED%95%98%EA%B8%B0-2)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.