[wp-trac] [WordPress Trac] #38060: Add Vary: Origin to CORS responses

WordPress Trac noreply at wordpress.org
Mon Oct 17 16:10:39 UTC 2016


#38060: Add Vary: Origin to CORS responses
-------------------------+---------------------
 Reporter:  pdufour      |       Owner:  jorbin
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  4.7
Component:  REST API     |     Version:
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:
-------------------------+---------------------
Changes (by jorbin):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"38806"]:
 {{{
 #!CommitTicketReference repository="" revision="38806"
 REST API: Include `Vary: Origin` in cors headers

 `vary: origin` is a W3 CORS implementation recommendation(
 https://www.w3.org/TR/cors/#resource-implementation ). It's used by
 default in frameworks such as hapi and Laravel-cors. Overall, it helps
 sites siting behind a cache such as varnish.

 Fixes #38060.
 Props procodewp, pdufour for research.
 }}}

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


More information about the wp-trac mailing list