출처 트라이얼이 성공적으로 완료된 후 Chrome 133에서 스토리지 액세스 헤더 (SAH)가 제공됩니다.
스토리지 액세스 헤더란 무엇인가요?
저장소 액세스 헤더는 소셜 미디어 위젯, 캘린더, 양방향 도구, 이미지와 같은 삽입된 콘텐츠가 파티션되지 않은 쿠키 액세스를 확인할 수 있는 새로운 HTTP 헤더입니다. 이전에는 JavaScript를 사용해야만 이 작업을 할 수 있었습니다. 새 Sec-Fetch-Storage-Access 요청 헤더와 Activate-Storage-Access 응답 헤더는 삽입된 콘텐츠를 사용하는 웹사이트의 성능과 사용자 환경을 개선하고 iframe이 아닌 리소스의 로드를 지원합니다. 구현 세부정보는 문서를 참고하세요.
요청 헤더
Sec-Fetch-Storage-Access:<access-status>
사용자가 교차 사이트 콘텐츠를 삽입하는 페이지를 방문하면 브라우저는 사용자 인증 정보 (예: 쿠키)가 필요할 수 있는 교차 사이트 요청에 Sec-Fetch-Storage-Access 헤더를 자동으로 포함합니다. 이 헤더는 삽입의 쿠키 액세스 권한 상태를 나타내며 다음 값을 가질 수 있습니다.
none: 삽입에 storage-access 권한이 없으므로 파티션되지 않은 쿠키 액세스에 액세스할 수 없습니다.
inactive: 삽입에 storage-access 권한이 있지만 현재 컨텍스트에서 사용하도록 선택하지 않았습니다. 삽입에 파티션되지 않은 쿠키 액세스 권한이 없습니다.
active: 삽입에 파티션되지 않은 쿠키 액세스 권한이 있습니다. 이 값은 파티션되지 않은 쿠키에 액세스할 수 있는 교차 출처 요청에 포함됩니다.
응답 헤더
Activate-Storage-Access:<retry-or-load>
Activate-Storage-Access 헤더는 브라우저에 쿠키를 사용하여 요청을 다시 시도하거나 Storage Access API (SAA)가 활성화된 상태에서 리소스를 직접 로드하도록 지시합니다. 헤더는 다음 값을 가질 수 있습니다.
load: 브라우저에 삽입 도구에 요청된 리소스의 파티션되지 않은 쿠키에 대한 액세스 권한을 부여하도록 지시합니다. 이 헤더를 포함하는 것은 storage-access권한이 부여된 경우 document.requestStorageAccess()을 호출하는 것과 같습니다. 사용자에게 추가 메시지가 표시되지 않습니다.
retry: 서버는 브라우저가 스토리지 액세스 권한을 활성화한 후 요청을 다시 시도해야 한다고 응답합니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-01-29(UTC)"],[[["Storage Access Headers (SAH) are new HTTP headers in Chrome 133 that allow embedded content to check for unpartitioned cookie access, improving upon the previous JavaScript-only method."],["The `Sec-Fetch-Storage-Access` request header indicates the embed's cookie access permission status, with values such as `none`, `inactive`, and `active`."],["The `Activate-Storage-Access` response header instructs the browser to either retry the request with cookies or load the resource directly with the Storage Access API (SAA) activated."],["SAH offers key advantages like supporting non-iframe embeds, reducing network and CPU usage, and improving user experience by eliminating disruptive intermediate loads."],["Developers can update their code to leverage SAH for better performance with subsequent `storage-access` requests or if their logic depends on the `Origin` header's presence."]]],["Storage Access Headers (SAH), shipping in Chrome 133, are new HTTP headers enhancing embedded content's unpartitioned cookie access, previously only available via JavaScript. `Sec-Fetch-Storage-Access` indicates cookie access status (`none`, `inactive`, `active`) in requests. `Activate-Storage-Access` directs browsers to `load` resources with granted access or `retry` with permission activation. SAH supports non-iframe embeds, reduces network and CPU usage, and improves UX. Developers can update code to leverage header logic and are encouraged to provide feedback.\n"]]