Search code examples
resthttp-headersopenfireresponse-headers

Openfire Rest API plugin field Authorization


I have a problem. I'm trying to get access to Openfire Rest API plugin via https in this way:

https://my-openfire.org.ua:7443/http-bind/plugins/restapi/v1/chatrooms

And I get error:

Failed to load https://my-openfire.org.ua:7443/http-bind/plugins/restapi/v1/chatrooms: Request header field Authorization is not allowed by Access-Control-Allow-Headers in preflight response.

People, what am I doing wrong?

enter image description here enter image description here


Solution

  • you need to use the path: https://myopenfire.org.ua:9090/plugins/restapi/v1/chatrooms

    (It uses the web interface port) and it's not binded to "http-bind"