Permissions-Policy: chỉ thị captured-surface-control
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
Chỉ thị captured-surface-control của header HTTP Permissions-Policy kiểm soát việc tài liệu có được phép sử dụng Captured Surface Control API hay không. Cụ thể, các phương thức forwardWheel(), increaseZoomLevel(), decreaseZoomLevel(), và resetZoomLevel() được kiểm soát bởi chỉ thị này.
Promise được trả về bởi các phương thức chính của API sẽ bị từ chối với NotAllowedError DOMException nếu quyền không được cho phép.
Cú pháp
http
Permissions-Policy: captured-surface-control=<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 captured-surface-control là self.
Thông số kỹ thuật
| Thông số kỹ thuật |
|---|
| Captured Surface Control> # feature-policy-integration> |