[wp-trac] [WordPress Trac] #46992: Add a filter which allows the HTTP headers for REST API Endpoints to be changed

WordPress Trac noreply at wordpress.org
Mon Apr 22 13:20:14 UTC 2019


#46992: Add a filter which allows the HTTP headers for REST API Endpoints to be
changed
-------------------------+---------------------
 Reporter:  sudar        |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  5.3
Component:  REST API     |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+---------------------

Comment (by adamsilverstein):

 @TimothyBlynJacobs the goal here is to modify the CORS headers in
 responses from WP REST API Endpoints. It doesn't look like this is
 possible using the `rest_post_dispatch` filter you mentioned, am I missing
 something?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46992#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list