Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2017년 3월.
참고 : 이 기능은 Web Worker에서 사용할 수 있습니다.
Headers 객체입니다.
아래 스니펫에서는 Request() 생성자를 활용하여 새 요청 (스크립트와 동일한 디렉토리에 위치한 이미지 파일) 을 생성하고, 요청 헤더를 변수에 저장합니다.
Headers 객체에 헤더를 추가하기 위해 Headers.append 를 활용합니다. 그리고 두번째 init 매개변수를 활용하여 새 요청을 생성하고, init 옵션으로 헤더를 전달합니다.
| Fetch # ref-for-dom-request-headers② |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025년 6월 7일 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.