Make getLocationAgnosticMwApi work if both APIs are on the same domain

and CORS is not configured.

Change-Id: I4564f6ba3c342a6365acddb4682b8ed38ea0f650
Merge "Make getLocationAgnosticMwApi work if both APIs are on the same domain"