[wp-meta] [Making WordPress.org] #1522: Add `Access-Control-Allow-Origin` header to api.wordpress.org

Making WordPress.org noreply at wordpress.org
Sun Jan 17 13:12:00 UTC 2016


#1522: Add `Access-Control-Allow-Origin` header to api.wordpress.org
------------------------+-------------------------------
Reporter:  DvanKooten   |      Owner:
    Type:  enhancement  |     Status:  new
Priority:  normal       |  Component:  api.wordpress.org
Keywords:               |
------------------------+-------------------------------
 It would be super helpful if api.wordpress.org would explicitly send a
 `Access-Control-Allow-Origin` header so that it accepts client-side
 requests without having to be proxied through a server.

 {{{#!php
 header( 'Access-Control-Allow-Origin: *' );
 }}}


 == Example use case ==

 I wanted to show a chart with a breakdown of PHP versions running
 WordPress [http://wpupdatephp.com/ on a GitHub pages (Jekyll) site]. Right
 now, this requires the call to https://api.wordpress.org/ to be proxied
 through a server somewhere since the default is to disallow client-side
 requests from other origins / hosts.

--
Ticket URL: <https://meta.trac.wordpress.org/ticket/1522>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list