title: error while invoking api from api console in store
body: <p>I am using wso2 api manager 2.6.0. I have created a prototyped api. When I try to invoke the api from store api console ,I get an error<br>
  TypeError: Failed to fetch</p>
  
  <p>When I take the curl command from the api console and execute it from command prompt on the same server where wso2 api manager is installed I get the expected response.</p>
  
  <p>As it a GET method , If I take the url and execute it on a chrome browser , it takes me the management console page. When I sign in to the management console page , the browser displays Error 405 - Method Not Allowed</p>
  
  <p>When I trigger the endpoint from postman, it returns an html page which is the same management console page.</p>
  
  <p>I have checked that the host and port for the gatewayendpoint and OAuthConfigurations/revokeapiurl are same  and the host is whitelisted in the store site.json. </p>
  
  <p>Any idea what is wrong or how can I debug it. </p>
  
  <p><img src="https://i.stack.imgur.com/ZUhNE.png" alt="API Console">
  <img src="https://i.stack.imgur.com/7eCbB.png" alt="Command Line Invocation From Same Host">
  <img src="https://i.stack.imgur.com/LEYjX.png" alt="BrowserErrorAfterSigninginthecarbonconsole">
  <img src="https://i.stack.imgur.com/kiJ5S.png" alt="Postman Invocation"></p>