Wat is Permissions-Policy Header Generator?
Permissions-Policy Header Generator is een browsertool voor deze taak: Genereer een Permissions-Policy HTTP-header om de toegang tot browserfuncties op je site te beheren. De uitvoer blijft leesbaar, zodat je die kunt controleren voordat je hem publiceert.
Quick answer
Use Permissions-Policy to disable browser features -- such as camera, microphone, geolocation, and autoplay -- that your site does not need. This improves privacy and prevents third-party scripts from accessing sensitive APIs.
Limitations
- Permissions-Policy requires deployment via an HTTP header. GitHub Pages and many static hosts do not support custom headers; use the allow attribute on iframes or configure the host to send the header.
- The older Feature-Policy header is deprecated. Browsers that support Permissions-Policy no longer process Feature-Policy.
- Some browser features such as gamepad and screen-wake-lock are not yet supported in all browser engines.
Zo gebruik je deze tool
- Open de tool en vul de relevante waarden in.
- Controleer de uitvoer in het resultaatpaneel.
- Kopieer alleen het deel dat bij je página past.
- Test de wijziging voordat je publiceert.
Waarvoor je het kunt gebruiken
- Terugkerend publicatiewerk sneller afronden.
- Markup, CSS of checklists voorbereiden voor een launch.
- Kleine fouten vermijden die bij statische sites makkelijk worden gemist.