On this page

Add a trusted origin and enable CORS

For web applications, you have to identify your app's URL as a trusted origin and enable CORS:

  1. In the Admin Console, go to Security > API.
  2. On the API page, select the Trusted Origins tab.
  3. Click Add Origin and then enter a name for the organization origin.
  4. In the Origin URL field, specify the base URL of the website that you want to allow cross-origin requests from. If you're using the sample app, specify http://localhost:8000/.
  5. Under Type, select the CORS and Redirect check boxes.
  6. Click Save.