I am creating a simple rest api with hapi and using Cloud9 IDE. I can access the API endpoint within the same browser as the IDE uses but can't reach the api with code. Instead of JSON output I get the Cloud9 sign in page source.
Any ideas to set this up correctly?
Your workspace is probably private. You can choose to make your server public by performing the following steps:
Hope this helps!