Permissions-Policy & browser APIs
Në shqip: Kufizimi i aftësive të shfletuesit
ShpjegimiSQ
Header-i Permissions-Policy i thotë shfletuesit cilat aftësi mund të përdorë faqja (kamera, mikrofoni, vendndodhja) — kështu edhe po futet kod i huaj, s'mund të të ndezë kamerën.
EnglishEN
The Permissions-Policy header tells the browser which capabilities the page may use (camera, microphone, location) — so even if foreign code gets in, it can't turn on your camera.
Si ta mendosh
Si t'u heqësh çelësat e dhomave që s'u duhen mysafirëve.
Lexoje në anglisht
Like taking back keys to rooms guests don't need.
Shembull kodihttp
Permissions-Policy: camera=(), microphone=(), geolocation=()