Permissions-Policy: chỉ thị summarizer

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

Chỉ thị summarizer của header HTTP Permissions-Policy kiểm soát quyền truy cập vào Summarizer API.

Cụ thể, khi một chính sách đã được xác định chặn việc sử dụng Summarizer API, mọi nỗ lực gọi các phương thức của API sẽ thất bại với NotAllowedError DOMException.

Cú pháp

http
Permissions-Policy: summarizer=<allowlist>;
<allowlist>

Danh sách các nguồn gốc được cấp quyền sử dụng tính năng. Xem Permissions-Policy > Cú pháp để biết thêm chi tiết.

Chính sách mặc định

Danh sách cho phép mặc định cho summarizerself.

Thông số kỹ thuật

Specification
Writing Assistance APIs
# summarizer-permissions-policy

Tương thích trình duyệt

Xem thêm