Changeset 40600
- Timestamp:
- 05/10/2017 04:22:01 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api.php
r40101 r40600 526 526 527 527 if ( $origin ) { 528 header( 'Access-Control-Allow-Origin: ' . esc_url_raw( $origin ) ); 528 // Requests from file:// and data: URLs send "Origin: null" 529 if ( 'null' !== $origin ) { 530 $origin = esc_url_raw( $origin ); 531 } 532 header( 'Access-Control-Allow-Origin: ' . $origin ); 529 533 header( 'Access-Control-Allow-Methods: OPTIONS, GET, POST, PUT, PATCH, DELETE' ); 530 534 header( 'Access-Control-Allow-Credentials: true' );
Note: See TracChangeset
for help on using the changeset viewer.