Fixed CORS issue with MW api calls
Fixed CORS issue with MW api calls

Added origin parameter with the current protocol+host when making api
calls to the non-same-origin domains.

Bug: T122488
Change-Id: I60d77f84fc01b8eee3a65e2db4f5d7437df3ca06

wikimedia/mediawiki-extensions-Graph,wikimedia/mediawiki-extensions-Graph