codestates / codestates/Bobpago
[๐จErr Handling] Bobpago ๋ฐฐํฌ ํ์ด์ง AccessDenied ์๋ฌ
- 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.