# Unable to POST to management API

**URL:** <https://community.auth0.com/t/unable-to-post-to-management-api/44837>\
**Category:** Get Help\
**Tags:** api\
**Created:** [June 17, 2020, 11:34am UTC](https://community.auth0.com/t/unable-to-post-to-management-api/44837 "2020-06-17T11:34:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wezzone](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/wezzone/32/22002_2.png) [@wezzone](https://community.auth0.com/u/wezzone)\
**Post date:** [June 17, 2020, 11:34am UTC](https://community.auth0.com/t/unable-to-post-to-management-api/44837/1 "2020-06-17T11:34:24Z")

</div>

Hi Team,  
i am able to query the management api for a list of users, but when i post/ create a new user i get the following error,  
Access to XMLHttpRequest at ‘https://_ **-** _\*\*\*\*\*\*.auth0.com/api/v2/users/’ from origin ‘[http://localhost:4200](http://localhost:4200)’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.  
i am using Angular 8 with oidc-client for session management. I only set the authorization header with the bearer token.  
I have added [http://localhost:4200](http://localhost:4200) to both CORS and web Origin.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [June 18, 2020, 8:43pm UTC](https://community.auth0.com/t/unable-to-post-to-management-api/44837/3 "2020-06-18T20:43:49Z")

</div>

Hi @wezzone,

You are not going to be able to make a POST to /users from a client side application.

> **[Get Management API Access Tokens for Single-Page Applications](https://auth0.com/docs/secure/tokens/access-tokens/get-management-api-tokens-for-single-page-applications)**
>
> Learn about available scopes and endpoints for Management API tokens for Single-page Applications (SPAs).

Hope this clarifies,  
Dan

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [July 3, 2020, 8:43pm UTC](https://community.auth0.com/t/unable-to-post-to-management-api/44837/4 "2020-07-03T20:43:50Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
