WordPress.org

Make WordPress Core

Opened 10 months ago

Closed 8 months ago

#24600 closed enhancement (fixed)

send_origin_headers from admin-post.php

Reported by: nickdaugherty Owned by: nacin
Milestone: 3.7 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch commit
Focuses: Cc:

Description

/wp-admin/admin-post.php should call send_origin_headers() to send cross domain access headers for allowing POSTs from frontend requests in the same way admin-ajax.php does. admin-ajax.php ticket for reference: #21024

Patch attached to add this functionality.

Attachments (1)

send_origin_headers.admin_post.diff (412 bytes) - added by nickdaugherty 10 months ago.
Adds send_origin_headers() for cross domain requests

Download all attachments as: .zip

Change History (4)

nickdaugherty10 months ago

Adds send_origin_headers() for cross domain requests

comment:1 batmoo10 months ago

  • Cc batmoo@… added

comment:2 dd328 months ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 3.7

"Anything you can do, I can do better; Anything I can do, you can do too"

This seems pretty sane and ideal for consistency.

comment:3 nacin8 months ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In 25036:

send_origin_headers() in admin-post.php.

props nickdaugherty, fixes #24600.

Note: See TracTickets for help on using tickets.