예제 #1
0
    /// <summary>
    /// Configures a restricted permissions policy for web apps that don't need any
    /// </summary>
    /// <param name="builder"></param>
    /// <returns></returns>
    public static PermissionsPolicyBuilder AddDefaultPermissionsPolicy(this PermissionsPolicyBuilder builder)
    {
        builder.AddAccelerometer().None();
        builder.AddAutoplay().None();
        builder.AddCamera().None();
        builder.AddEncryptedMedia().None();
        builder.AddFullscreen().None();
        builder.AddGeolocation().None();
        builder.AddGyroscope().None();
        builder.AddMagnetometer().None();
        builder.AddMicrophone().None();
        builder.AddMidi().None();
        builder.AddPayment().None();
        builder.AddPictureInPicture().None();
        builder.AddSyncXHR().None();
        builder.AddUsb().None();
        builder.AddXR().None();

        return(builder);
    }