[wp-trac] [WordPress Trac] #34299: Force the REST API endpoint to HTTPS when appropriate

WordPress Trac noreply at wordpress.org
Wed Oct 21 20:37:58 UTC 2015


#34299: Force the REST API endpoint to HTTPS when appropriate
----------------------------------------+--------------------------
 Reporter:  johnbillion                 |       Owner:  johnbillion
     Type:  enhancement                 |      Status:  closed
 Priority:  normal                      |   Milestone:  4.4
Component:  REST API                    |     Version:  trunk
 Severity:  normal                      |  Resolution:  fixed
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+--------------------------
Changes (by johnbillion):

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


Comment:

 In [changeset:"35342"]:
 {{{
 #!CommitTicketReference repository="" revision="35342"
 Force the REST API URL to use `https` for its scheme when the current
 request is served over HTTPS and the host name matches that of the REST
 API URL.

 This allows sites to use an admin area over HTTPS with the front end over
 HTTP, and not end up with a cross-protocol problem when using the REST API
 URL in the admin area.

 Fixes #34299
 }}}

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


More information about the wp-trac mailing list