{"action":"opened","issue":{"url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/1524","repository_url":"https://api.github.com/repos/aws-amplify/amplify-js","labels_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/1524/labels{/name}","comments_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/1524/comments","events_url":"https://api.github.com/repos/aws-amplify/amplify-js/issues/1524/events","html_url":"https://github.com/aws-amplify/amplify-js/issues/1524","id":354736411,"node_id":"MDU6SXNzdWUzNTQ3MzY0MTE=","number":1524,"title":"Cloud-API: CORS Error","user":{"login":"MichZipp","id":15633078,"node_id":"MDQ6VXNlcjE1NjMzMDc4","avatar_url":"https://avatars1.githubusercontent.com/u/15633078?v=4","gravatar_id":"","url":"https://api.github.com/users/MichZipp","html_url":"https://github.com/MichZipp","followers_url":"https://api.github.com/users/MichZipp/followers","following_url":"https://api.github.com/users/MichZipp/following{/other_user}","gists_url":"https://api.github.com/users/MichZipp/gists{/gist_id}","starred_url":"https://api.github.com/users/MichZipp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichZipp/subscriptions","organizations_url":"https://api.github.com/users/MichZipp/orgs","repos_url":"https://api.github.com/users/MichZipp/repos","events_url":"https://api.github.com/users/MichZipp/events{/privacy}","received_events_url":"https://api.github.com/users/MichZipp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-28T13:39:53Z","updated_at":"2018-08-28T13:39:53Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nI have a mobile hub web project and I enabled the cloud api to access my database.\r\nWhen i call the api with:\r\n`API.get(\"sampleCloudApi\",\"/items\").then(response => {\r\n      console.log(\"test\");\r\n    }).catch(error => {\r\n        console.log(error)\r\n    });`\r\nI'm getting a CORS Error.\r\n\r\nBut when  i test the API with the awsmobile-cli with:\r\n`awsmobile cloud-api invoke sampleCloudApi GET \"/items\"`\r\nIt works!\r\n\r\nWhat could be the reason?\r\n"}}
{"actor":{"display_login":"MichZipp"}}