Get the most out of your Centmin Mod LEMP stack
Become a Member

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:
    1:36 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

    45,441
    10,312
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,994
    Local Time:
    10:36 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    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