Blocked by CORS policy

I am using angular and i am trying to connect with openfire, The connection established successfully, When i try to call get user using httpclient in angular. I got Cors error as below

Access to XMLHttpRequest at ‘http://127.0.0.1:9090/plugins/restapi/v1/users’ from origin ‘http://localhost:4200’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: Redirect is not allowed for a preflight request.

I enabled Cors in Web binding Settings and yet it is not working