Plugin Directory

Changeset 3441922


Ignore:
Timestamp:
01/18/2026 01:20:40 PM (4 weeks ago)
Author:
unicorn03
Message:

version stable 5.2.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • headers-security-advanced-hsts-wp/trunk/headers-security-advanced-hsts-wp.php

    r3441897 r3441922  
    2828const HSTS_STANDARD_VALUE_PERMISSIONS_POLICY = 'accelerometer=(), autoplay=(), camera=(), cross-origin-isolated=(), display-capture=(self), encrypted-media=(), fullscreen=*, geolocation=(self), gyroscope=(), keyboard-map=(), magnetometer=(), microphone=(), midi=(), payment=*, picture-in-picture=*, publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=*, usb=(), xr-spatial-tracking=(), gamepad=(), serial=()';
    2929
    30 function hsts_plugin_get_headers( array $headers = array() ): array {
     30function hsts_plugin_get_headers( $headers = array() ) {
     31        if ( ! is_array( $headers ) ) {
     32            $headers = array();
     33        }
     34       
    3135        $headers['Access-Control-Allow-Methods']             = 'GET,POST';
    3236        $headers['Access-Control-Allow-Headers']             = 'Content-Type, Authorization';
Note: See TracChangeset for help on using the changeset viewer.