[wp-trac] [WordPress Trac] #37994: Preflight CORS check fails because of missing "Access-Control-Allow-Headers: Content-Type"

WordPress Trac noreply at wordpress.org
Mon Oct 31 00:33:26 UTC 2016


#37994: Preflight CORS check fails because of missing "Access-Control-Allow-
Headers: Content-Type"
--------------------------+---------------------
 Reporter:  nuvoPoint     |       Owner:  pento
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.7
Component:  REST API      |     Version:  4.4
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------
Changes (by pento):

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


Comment:

 In [changeset:"39044"]:
 {{{
 #!CommitTicketReference repository="" revision="39044"
 REST API: Allow Content-Type on CORS requests.

 This allows `POST` requests with a wider variety of `Content-Type' headers
 - `Content-Type: application/json`, for example.

 Props jnylen0.
 Fixes #37994.
 }}}

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


More information about the wp-trac mailing list