{"action":"created","issue":{"url":"https://api.github.com/repos/Afrozaar/wp-api-v2-client-java/issues/13","repository_url":"https://api.github.com/repos/Afrozaar/wp-api-v2-client-java","labels_url":"https://api.github.com/repos/Afrozaar/wp-api-v2-client-java/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/Afrozaar/wp-api-v2-client-java/issues/13/comments","events_url":"https://api.github.com/repos/Afrozaar/wp-api-v2-client-java/issues/13/events","html_url":"https://github.com/Afrozaar/wp-api-v2-client-java/issues/13","id":148499751,"number":13,"title":"403 Forbidden error when connecting from local to remote WP","user":{"login":"manikmagar","id":877286,"avatar_url":"https://avatars.githubusercontent.com/u/877286?v=3","gravatar_id":"","url":"https://api.github.com/users/manikmagar","html_url":"https://github.com/manikmagar","followers_url":"https://api.github.com/users/manikmagar/followers","following_url":"https://api.github.com/users/manikmagar/following{/other_user}","gists_url":"https://api.github.com/users/manikmagar/gists{/gist_id}","starred_url":"https://api.github.com/users/manikmagar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manikmagar/subscriptions","organizations_url":"https://api.github.com/users/manikmagar/orgs","repos_url":"https://api.github.com/users/manikmagar/repos","events_url":"https://api.github.com/users/manikmagar/events{/privacy}","received_events_url":"https://api.github.com/users/manikmagar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-14T22:24:03Z","updated_at":"2016-04-16T20:07:22Z","closed_at":null,"body":"I develop my web application in local laptop and my wordpress is deployed on remote VPS. I use this API to get custom post data from wordpress. All was working good in local but suddenly I started getting 403 Forbidden error for every API call eg. getUsers(). \r\n\r\nThere is no change in user/password/roles. API calls using postman with same user/password works. More surprisingly when I build the WAR from local and deployed on the VPS that hosts wordpress then there everything seems to work normally. I even created another simple maven java project in local, added this wp-api-v2-client-java dependency. Then created a simple JUnit test to getUsers() but it failed.\r\n\r\nAlso if I use Postman with same id/password to call same endpoint from my local to remote VPS, it works.\r\n\r\nI am not sure what is going on. I have wp api beta 13 with wordpress 4.5, can that be an issue? I updated wp api to beta 13 as soon as it was out, I guessed it was working after that too."},"comment":{"url":"https://api.github.com/repos/Afrozaar/wp-api-v2-client-java/issues/comments/210886847","html_url":"https://github.com/Afrozaar/wp-api-v2-client-java/issues/13#issuecomment-210886847","issue_url":"https://api.github.com/repos/Afrozaar/wp-api-v2-client-java/issues/13","id":210886847,"user":{"login":"manikmagar","id":877286,"avatar_url":"https://avatars.githubusercontent.com/u/877286?v=3","gravatar_id":"","url":"https://api.github.com/users/manikmagar","html_url":"https://github.com/manikmagar","followers_url":"https://api.github.com/users/manikmagar/followers","following_url":"https://api.github.com/users/manikmagar/following{/other_user}","gists_url":"https://api.github.com/users/manikmagar/gists{/gist_id}","starred_url":"https://api.github.com/users/manikmagar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manikmagar/subscriptions","organizations_url":"https://api.github.com/users/manikmagar/orgs","repos_url":"https://api.github.com/users/manikmagar/repos","events_url":"https://api.github.com/users/manikmagar/events{/privacy}","received_events_url":"https://api.github.com/users/manikmagar/received_events","type":"User","site_admin":false},"created_at":"2016-04-16T20:07:22Z","updated_at":"2016-04-16T20:07:22Z","body":"Hi @johanmynhardt , I will try building from develop branch but like I am only getting 403 error when I deploy my war in local tomcat/run in eclipse. Same WAR works properly on my VPS where I have tomcat and wordpress installed. I might try few more things today to see what might be the cause."}}