Ticket #34921: rest-cors-allowed-headers.diff
File rest-cors-allowed-headers.diff, 654 bytes (added by , 8 years ago) |
---|
-
wp-includes/rest-api/class-wp-rest-server.php
234 234 */ 235 235 $this->send_header( 'X-Content-Type-Options', 'nosniff' ); 236 236 $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' ); 238 238 239 239 /** 240 240 * Send nocache headers on authenticated requests.