Make WordPress Core

Ticket #38546: 38546.diff

File 38546.diff, 565 bytes (added by jnylen0, 7 years ago)
  • src/wp-includes/rest-api.php

     
    513513
    514514        if ( $origin ) {
    515515                header( 'Access-Control-Allow-Origin: ' . esc_url_raw( $origin ) );
    516                 header( 'Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE' );
     516                header( 'Access-Control-Allow-Methods: OPTIONS, GET, POST, PUT, PATCH, DELETE' );
    517517                header( 'Access-Control-Allow-Credentials: true' );
    518518                header( 'Vary: Origin' );
    519519        }