This seems to work. See
the MW API at wikipedia. The origin property must be sent in the GET request, i.e. see the data below.
Query results