[wp-trac] [WordPress Trac] #50369: Add `Link` to Access-Control-Expose-Headers
WordPress Trac
noreply at wordpress.org
Sat Jun 20 23:54:47 UTC 2020
#50369: Add `Link` to Access-Control-Expose-Headers
-------------------------+--------------------------------
Reporter: Toro_Unit | Owner: TimothyBlynJacobs
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.5
Component: REST API | Version: 4.4
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: rest-api
-------------------------+--------------------------------
Changes (by TimothyBlynJacobs):
* owner: (none) => TimothyBlynJacobs
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"48112" 48112]:
{{{
#!CommitTicketReference repository="" revision="48112"
REST API: Add "Link" to the list of exposed cors headers.
Currently, only the X-WP-Total and X-WP-TotalPages headers are exposed
which means that clients have to manually construct the URL to implement
pagination instead of using the "prev" and "next" Links.
Additionally, a filter "rest_exposed_cors_headers" is introduced to make
it simpler for plugins to expose additional headers.
Props Toro_Unit, ayeshrajans.
Fixes #50369.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50369#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list