Hello, I am running mender 2.1 on a local Ubuntu 18 machine. I am able to login using the mender gui, web based user interface. And also able to call the APIs using curl command line utility, as described in the documentation.
I am facing issue while accessing mender APIs from the web page hosted on different server. I am getting http 400 error for preflight http OPTIONS request and then CORS error.
As per the documentation mender supports OPTIONS and cross server API access. So I have tested OPTIONS request from curl and it works fine I get 200 ok. But when web browser sends OPTIONS request it fails with http error 400 bad request.
I verified the http header for the request sent from browser, I observed that when “origin” field with url of the page is added to the OPTIONS request then it fails with 400 error.
Is there any additional configuration that need to updated to access mender APIs across the server?