Plugin Directory

Changeset 2529275


Ignore:
Timestamp:
05/10/2021 06:54:35 PM (5 years ago)
Author:
Sebas2
Message:

Added Permissions-Policy

Location:
s2-safety-functions/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • s2-safety-functions/trunk/readme.txt

    r2529268 r2529275  
    2626
    2727* Initial version
     28
     29= 1.9.1 =
     30
     31* Update of Wordpress version
     32* Update of Plugin Version
     33* Added Permissions-Policy for fullscreen=(), geolocation=(), camera=()
  • s2-safety-functions/trunk/s2_safety.php

    r2529270 r2529275  
    6565        */
    6666        header('X-Frame-Options: SAMEORIGIN');
     67        /*
     68            Will be removed
     69         */
    6770        header("Feature-Policy: geolocation 'self';");
    6871        header("Feature-Policy: camera 'none';");
    6972        header("Feature-Policy: unsized-media 'none';");
     73        /*
     74            Since 1.9.1  Feature-Policy migration to Permissions-Policy
     75         */       
     76        header("Permissions-Policy: fullscreen=(), geolocation=(), camera=();");
    7077    }
    7178}
    72 
Note: See TracChangeset for help on using the changeset viewer.