# List API No 'Access-Control-Allow-Origin'

**URL:** https://discourse.sst.dev/t/list-api-no-access-control-allow-origin/460
**Category:** General
**Created:** [September 15, 2018, 12:59am UTC](https://discourse.sst.dev/t/list-api-no-access-control-allow-origin/460 "2018-09-15T00:59:01Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![voyla](https://avatars.discourse-cdn.com/v4/letter/v/45deac/32.png) [@voyla](https://discourse.sst.dev/u/voyla)
#### Post date: [September 15, 2018, 12:59am UTC](https://discourse.sst.dev/t/list-api-no-access-control-allow-origin/460/1 "2018-09-15T00:59:01Z")

</div>

I review the previous post on this and was not able to debug the issue.

I get the following error in chrome dev tools console when calling the list api ‘No ‘Access-Control-Allow-Origin’ header is present on the requested resource.’

I have checked the following sources for failure:

- libs/response-lib.js sets the headers Access-Control-Allow-Origin to “\*” and Access-Control-Allow-Credentials to true
- serverless.yml authorizer attribute is correctly indented
- I successfully ran the test POSTing to /notes at the end of the deployment section
- I used the IAM Policy Simulator to simulate invoking API Gateway with the IAM role provided to authenticated users by the identity pool

I am not sure how else to troubleshoot this. Any advice is appreciated.

Thanks,  
David

---

<div class="post-metadata">

### Author: ![jayair](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.sst.dev/jayair/32/9_2.png) [@jayair](https://discourse.sst.dev/u/jayair)
#### Post date: [September 19, 2018, 6:36pm UTC](https://discourse.sst.dev/t/list-api-no-access-control-allow-origin/460/2 "2018-09-19T18:36:13Z")

</div>

Yeah this error can sometimes be super cryptic. It is likely that there is an error in the Lambda. Can you use this chapter to turn on CloudWatch logs and check if you see anything there?

> **[API Gateway and Lambda Logs](https://serverless-stack.com/chapters/api-gateway-and-lambda-logs.html)**
>
> To view logs for your serverless APIs on AWS, CloudWatch needs to be enabled for API Gateway and Lambda. CloudWatch logs are ordered by Log Groups and Log Stream. Lambda CloudWatch logs can also be viewed using the Serverless CLI with the “serverless...
