Make WordPress Core

Ticket #34921: rest-cors-allowed-headers.diff

File rest-cors-allowed-headers.diff, 654 bytes (added by tlovett1, 8 years ago)
  • wp-includes/rest-api/class-wp-rest-server.php

     
    234234                 */
    235235                $this->send_header( 'X-Content-Type-Options', 'nosniff' );
    236236                $this->send_header( 'Access-Control-Expose-Headers', 'X-WP-Total, X-WP-TotalPages' );
    237                 $this->send_header( 'Access-Control-Allow-Headers', 'Authorization' );
     237                $this->send_header( 'Access-Control-Allow-Headers', 'Authorization, X-WP-Nonce' );
    238238
    239239                /**
    240240                 * Send nocache headers on authenticated requests.