{"action":"created","issue":{"url":"https://api.github.com/repos/jhedev/todobackend-haskell/issues/9","labels_url":"https://api.github.com/repos/jhedev/todobackend-haskell/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/jhedev/todobackend-haskell/issues/9/comments","events_url":"https://api.github.com/repos/jhedev/todobackend-haskell/issues/9/events","html_url":"https://github.com/jhedev/todobackend-haskell/issues/9","id":108988026,"number":9,"title":"links in API are hardcoded to http, causes CORS issues","user":{"login":"moredip","id":65444,"avatar_url":"https://avatars.githubusercontent.com/u/65444?v=3","gravatar_id":"","url":"https://api.github.com/users/moredip","html_url":"https://github.com/moredip","followers_url":"https://api.github.com/users/moredip/followers","following_url":"https://api.github.com/users/moredip/following{/other_user}","gists_url":"https://api.github.com/users/moredip/gists{/gist_id}","starred_url":"https://api.github.com/users/moredip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moredip/subscriptions","organizations_url":"https://api.github.com/users/moredip/orgs","repos_url":"https://api.github.com/users/moredip/repos","events_url":"https://api.github.com/users/moredip/events{/privacy}","received_events_url":"https://api.github.com/users/moredip/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"jhedev","id":4572986,"avatar_url":"https://avatars.githubusercontent.com/u/4572986?v=3","gravatar_id":"","url":"https://api.github.com/users/jhedev","html_url":"https://github.com/jhedev","followers_url":"https://api.github.com/users/jhedev/followers","following_url":"https://api.github.com/users/jhedev/following{/other_user}","gists_url":"https://api.github.com/users/jhedev/gists{/gist_id}","starred_url":"https://api.github.com/users/jhedev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhedev/subscriptions","organizations_url":"https://api.github.com/users/jhedev/orgs","repos_url":"https://api.github.com/users/jhedev/repos","events_url":"https://api.github.com/users/jhedev/events{/privacy}","received_events_url":"https://api.github.com/users/jhedev/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-09-30T00:46:47Z","updated_at":"2015-10-11T16:22:14Z","closed_at":null,"body":"For reasons I don't totally understand it seems that non-https urls don't play nicely with CORS. Unfortunately even if I access the API via https the links generated in the API responses appear to be hardcoded to `http://`. This is causing tests to fail (at least in Chrome): http://preview.todobackend.com/specs/index.html?https://todobackend-scotty.sloppy.zone/todos"},"comment":{"url":"https://api.github.com/repos/jhedev/todobackend-haskell/issues/comments/147215786","html_url":"https://github.com/jhedev/todobackend-haskell/issues/9#issuecomment-147215786","issue_url":"https://api.github.com/repos/jhedev/todobackend-haskell/issues/9","id":147215786,"user":{"login":"jhedev","id":4572986,"avatar_url":"https://avatars.githubusercontent.com/u/4572986?v=3","gravatar_id":"","url":"https://api.github.com/users/jhedev","html_url":"https://github.com/jhedev","followers_url":"https://api.github.com/users/jhedev/followers","following_url":"https://api.github.com/users/jhedev/following{/other_user}","gists_url":"https://api.github.com/users/jhedev/gists{/gist_id}","starred_url":"https://api.github.com/users/jhedev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhedev/subscriptions","organizations_url":"https://api.github.com/users/jhedev/orgs","repos_url":"https://api.github.com/users/jhedev/repos","events_url":"https://api.github.com/users/jhedev/events{/privacy}","received_events_url":"https://api.github.com/users/jhedev/received_events","type":"User","site_admin":false},"created_at":"2015-10-11T16:22:14Z","updated_at":"2015-10-11T16:22:14Z","body":"Did you notice that the second command tries to connect to `127.0.0.1`? "}}