-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
02-app > 02-api-reference > 05-next-config-js > headers.mdx #262
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다! 아래 내용 보시고 리뷰 반영 부탁드립니다.
- `locale`: `false` or `undefined` - whether the locale should not be included when matching. | ||
- `has` is an array of [has objects](#header-cookie-and-query-matching) with the `type`, `key` and `value` properties. | ||
- `missing` is an array of [missing objects](#header-cookie-and-query-matching) with the `type`, `key` and `value` properties. | ||
- `source`는 들어오는 request 경로 패턴이다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
request도 번역 부탁드립니다~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵 수정했습니다. 2fc4356
- `basePath`: `false` 또는 `undefined` - 매칭할 때 false인 경우 `basePath`가 포함되지 않으며, 외부 재작성에만 사용할 수 있다. | ||
- `locale`: `false` 또는 `undefined` - 매칭할 때 `locale`을 포함하지 않아야 하는지 여부를 설정한다. | ||
- `has`는 `type`, `key`, `value` 프로퍼티를 가진 [has 객체](#헤더,-쿠키-및-쿼리-매칭) 배열이다. | ||
- `missing`은 `type`, `key`, `value` 프로퍼티를 가진 [missing 객체](#헤더,-쿠키-및-쿼리-매칭) 배열이다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
38, 39 line의 헤더,-쿠키-및-쿼리-매칭
은 문서 내 이동 기능으로 번역하지 않는 것이 좋아보입니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵 수정했습니다. 811840b
@@ -71,9 +71,9 @@ module.exports = { | |||
} | |||
``` | |||
|
|||
## Path Matching | |||
## 경로 일치 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
상단에서 Matching
을 매칭
으로 번역해주셔서, 통일 부탁 드립니다! :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵 수정했습니다. 10643fc
- `key`: `String` - the key from the selected type to match against. | ||
- `value`: `String` or `undefined` - the value to check for, if undefined any value will match. A regex like string can be used to capture a specific part of the value, e.g. if the value `first-(?<paramName>.*)` is used for `first-second` then `second` will be usable in the destination with `:paramName`. | ||
- `type`: `String` - `header`, `cookie`, `host` 또는 `query`여야 한다. | ||
- `key`: `String` - 일치시킬 타입의 키이다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
국립국어원에 따라 키이다
는 키다
로 줄여 쓸 수 있을 것 같습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵 수정했습니다. 014fe2e
|
||
When leveraging [`i18n` support](/docs/pages/building-your-application/routing/internationalization) with headers each `source` is automatically prefixed to handle the configured `locales` unless you add `locale: false` to the header. If `locale: false` is used you must prefix the `source` with a locale for it to be matched correctly. | ||
headers 함수와 함께 [`i18n` 지원](/docs/pages/building-your-application/routing/국제화)을 활용하는 경우 헤더에 `locale: false`를 추가하지 않는 한 각 `source`는 구성된 `locale`을 처리하도록 자동으로 접두사가 붙는다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
링크로 된 국제화
또한 문서 이동 기능이므로 원문 그대로 작성 부탁드립니다~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵 수정했습니다. 71243e7
@@ -376,7 +377,7 @@ module.exports = { | |||
|
|||
## Cache-Control | |||
|
|||
You can set the `Cache-Control` header in your [Next.js API Routes](/docs/pages/building-your-application/routing/api-routes) by using the `res.setHeader` method: | |||
`res.setHeader` 메서드를 사용하여 [Next.js API Routes](/docs/pages/building-your-application/routing/api-routes)에서 `Cache-Control` 헤더를 설정할 수 있다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
링크 제목에 Routes
번역 부탁드립니다~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵 수정했습니다. 34e4302
@@ -417,7 +418,7 @@ If you're deploying to [Vercel](https://vercel.com/docs/concepts/edge-network/he | |||
|
|||
### X-XSS-Protection | |||
|
|||
This header stops pages from loading when they detect reflected cross-site scripting (XSS) attacks. Although this protection is not necessary when sites implement a strong [`Content-Security-Policy`](#content-security-policy) disabling the use of inline JavaScript (`'unsafe-inline'`), it can still provide protection for older web browsers that don't support CSP. | |||
이 헤더는 반영된 크로스 사이트 스크립팅(XSS) 공격이 감지되면 페이지 로딩을 중지한다. 사이트에서 인라인 자바스크립트(`unsafe-inline`) 사용을 비활성화하는 강력한 [`콘텐츠 보안 정책(CSP)`](#content-security-policy)을 구현하는 경우에는 이 보호 기능이 필요하지 않지만, CSP를 지원하지 않는 구형 웹 브라우저를 보호할 수 있다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unsafe-inline
백틱으로 잘 감싸주셨는데, 백틱 안에서 따옴표로 한번 더 감싸주세용 :)
'unsafe-inline'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵 수정했습니다. 4cbd515
@@ -450,7 +451,9 @@ This header allows you to control which features and APIs can be used in the bro | |||
|
|||
### X-Content-Type-Options | |||
|
|||
This header prevents the browser from attempting to guess the type of content if the `Content-Type` header is not explicitly set. This can prevent XSS exploits for websites that allow users to upload and share files. For example, a user trying to download an image, but having it treated as a different `Content-Type` like an executable, which could be malicious. This header also applies to downloading browser extensions. The only valid value for this header is `nosniff`. | |||
이 헤더는 `Content-Type` 헤더가 명시적으로 설정되지 않은 경우 브라우저가 콘텐츠 유형을 추측하지 못하도록 방지한다. 이렇게 하면 사용자가 파일을 업로드하고 공유할 수 있는 웹사이트에 대한 XSS 익스플로잇을 방지할 수 있다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
익스플로잇 보다는 취약점 공격이 조금 더 이해하기 쉬워 보입니다 :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵 수정했습니다 b3dc10f
@@ -491,9 +494,9 @@ const ContentSecurityPolicy = ` | |||
` | |||
``` | |||
|
|||
When a directive uses a keyword such as `self`, wrap it in single quotes `''`. | |||
지시어가 `self`와 같은 키워드를 사용하는 경우 작은따옴표 '''`로 묶는다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
작은 따옴표의 표시가 '''`로 되어있습니다! 맨 앞 따옴표 하나를 백틱으로 바꿔주세요 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵 수정했습니다. 79f0dbd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
수고하셨습니다! 추가로 번역을 희망하시면 이슈에 댓글 남겨주세요~
기여자용
문서 개선
PR을 열기 전에
pnpm prettier-fix
를 실행하여 서식 문제를 해결합니다. - 문서 기여 가이드를 읽고 문서 지침을 따르는지 확인하세요: https://github.com/Nextjs-kr/Nextjs.ko/blob/main/packages/next/README.mdrelated to : headers.mdx #166
Progress
pnpm prettier-fix