WordPress.org

Make WordPress Core

Ticket #50369: 50369.2.diff

File 50369.2.diff, 726 bytes (added by Toro_Unit, 11 months ago)
  • src/wp-includes/rest-api/class-wp-rest-server.php

    diff --git a/src/wp-includes/rest-api/class-wp-rest-server.php b/src/wp-includes/rest-api/class-wp-rest-server.php
    index a7c43b041f..ef3d93d435 100644
    a b class WP_REST_Server { 
    243243                 * https://miki.it/blog/2014/7/8/abusing-jsonp-with-rosetta-flash/
    244244                 */
    245245                $this->send_header( 'X-Content-Type-Options', 'nosniff' );
    246                 $this->send_header( 'Access-Control-Expose-Headers', 'X-WP-Total, X-WP-TotalPages' );
     246                $this->send_header( 'Access-Control-Expose-Headers', 'X-WP-Total, X-WP-TotalPages, Link' );
    247247                $this->send_header( 'Access-Control-Allow-Headers', 'Authorization, Content-Type' );
    248248
    249249                /**