[wp-trac] [WordPress Trac] #57752: Improve rest_(allowed|exposed)_cors_headers filters
WordPress Trac
noreply at wordpress.org
Wed Jun 28 17:38:09 UTC 2023
#57752: Improve rest_(allowed|exposed)_cors_headers filters
---------------------------------------------+-------------------------
Reporter: bor0 | Owner: kadamwhite
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.3
Component: REST API | Version: 6.2
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses: rest-api
---------------------------------------------+-------------------------
Changes (by kadamwhite):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"56096" 56096]:
{{{
#!CommitTicketReference repository="" revision="56096"
REST API: Expose current $request object to cors_header filters in
WP_REST_SERVER->serve_request().
Allows headers to be more easily set on a per-response basis when more or
less security is needed on a specific route.
Props bor0, rachelbaker, spacedmonkey, chaion07, oglekler, SergeyBiryukov.
Fixes #57752.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57752#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list