-
Notifications
You must be signed in to change notification settings - Fork 0
Permissions‐Policy Header
Marthijn van den Heuvel edited this page Apr 18, 2025
·
2 revisions
The Permissions-Policy header provides mechanisms to explicitly declare which features and APIs can be used in the browser.
app.UsePermissionPolicy(
p =>
{
// configure the various features
p
.AddAccelerometer(x => x.Disallow())
.AddPayment(x => x.AddOrigin("example.com"))
.AddBluetooth(x => x.AllowAll())
.AddAutoplay(x => x.AddSelf());
});Parts of this wiki may come from, or be based on, the MDN Web Doc's. Documentation by Mozilla Contributors is licensed under CC-BY-SA 2.5 or any later version.