I am trying to invoke wordpress rest api's in ionic application most api's seem to work fine but while invoking some api's mostly the setter api's i get the CORS error however they work perfectly when invoked via web. Most of the solutions available online are for localhost but since i need to implement the same on online resources they are not useful unable to get any clue about the rectification also since some api may involve limited access i can not prefer any third party proxy sites.the error i am getting is as follows:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://test.oiamigotech.com/api/user/generate_auth_cookie/?username=dsfsdfdsdfssdf&password=sdfsdfsdfsdf&insecure=cool. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).