Getting 403 error for https://{{domain}}


I am trying to get all groups in angular 4. Sending withCredentials:true in request which sends cookie in the api request.
But getting below error -
Failed to load https://{{domain}} No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:4200’ is therefore not allowed access. The response had HTTP status code 403.

Please help me, how i can give api call for groups in angular.

Hey @sangeeta

Make sure you’ve whitelisted your test server (http://localhost:4200) as an approved origin. For instructions, please see Enabling CORS.

Hi @jmelberg

Yes, I have already whitelisted http://localhost:4200 as an approved origin. But still facing the issue. Please help me out.