Unable to POST to management API

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’ 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 to both CORS and web Origin.

Hi @wezzone,

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

Hope this clarifies,
Dan

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