Welcome to Centmin Mod Community
Register Now

nginx Permissions-Policy instead of Feature-Policy

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by xenbiarritz, Sep 23, 2020.

  1. xenbiarritz

    xenbiarritz Member

    44
    3
    8
    May 7, 2017
    Ratings:
    +4
    Local Time:
    11:38 PM
    Hi @eva2000
    i found this:
    Goodbye Feature Policy and hello Permissions Policy!
    and this
    Permissions Policy


    if i understand correctly
    Code:
    add_header Feature-Policy "accelerometer 'none'; camera 'none'; geolocation 'none'; gyroscope 'none'; magnetometer 'none'; microphone 'none'; payment 'none'; usb 'none'";
    
    become
    Code:
    add_header Permissions-Policy "accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()";
    
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,896
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    8:38 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yeah read about this change just haven't had the time to look into the specific changes in the syntax. Guess your posted examples will help :)

    the new syntax for
    Code (Text):
    add_header Permissions-Policy "accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()";

    does look good checked for my forums at Scan results for https://community.centminmod.com/
     
    Last edited: Sep 23, 2020