WordPress.org

Make WordPress Core

Ticket #24600: send_origin_headers.admin_post.diff

File send_origin_headers.admin_post.diff, 412 bytes (added by nickdaugherty, 22 months ago)

Adds send_origin_headers() for cross domain requests

  • wp-admin/admin-post.php

     
    1414else 
    1515        require_once('../wp-load.php'); 
    1616 
     17/** Allow for cross-domain requests (from the frontend). */ 
     18send_origin_headers(); 
     19 
    1720require_once(ABSPATH . 'wp-admin/includes/admin.php'); 
    1821 
    1922nocache_headers();