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
As an aside: I’m not sure why you’re writing an Angular-based integration with the REST API, but given that you’re using Angular, the chances are high that you’re writing an end-user client. Please be aware that you should not use the REST API in a chat client. The REST API offers administrative functionality. If that is exposed to all clients, you have a security issue.