Hey. We have got the REST API working and displaying/updating information. We would like to integrate parts of the data to a web-application we are building, but trying to send a GET request only results in:
“Access to fetch at ‘http://192.168.2.2:4777/mavlink’ from origin ‘http://localhost:4200’ 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.”
Seems like this is something that must be allowed server-side.
Is this something you are planning to allow? Can’t see any security issues as the web-application we are building must run on the laptop driving the ROV to work anyway.
It is the mavlink2rest executable that hosts the web-server for the api. How can I go about configuring this for a local test here?