These are the results obtained:
- Getting data from VC via Postman: OK;
- Getting data from VC via Node JS libraries: OK;
- Getting data from VC pasting the URL in the browser address bar: OK;
During the authentication process I first get a 401 error as expected.
The problem is that I can't access the www-authenticate response header in which there are all the data needed to complete the authentication.
After many reaserches, i got to the conclusion that the browser CORS policy is the reason why this happens.
The solution is probably in the usage of the "Access Control Expose Headers" in the response comeing from the controller.
This implies that you should get access to the server-side code (inside the robot controller) and it's quite impossibile I think.
I think RWS are a great opportunity to develop something that probably other competitors in the robotics field can't, and for this reason ABB should give much more efforts to support developers.
Has anyone solved or at least experienced this problem? Any suggestion, information or link to documentation would be really appreciated.
Thanks in advance for anyone who will try to help.