0
votes

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

1
Please help me o this, I am getting the following :--- Access to fetch at '192.168.5.237:9090/plugins/restapi/v1/users/test1' from origin '169.254.129.32:3000' 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. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.KIRAN K J

1 Answers

1
votes

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"