Use AngularJS http request for Flower Power Sensor


#1

I’m currently using AngularJS (version 1) http to connect to https://api-flower-power-pot.parrot.com/ API but getting below error. This is CORS mechanism and can be set on the API server.

Currently, I don’t see any documentation on using Java / JavaScript. Are there any other way to use this API aside from Python?

ERROR:
Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource


#2

Is there anybody from Parrot who can assist/answer from inquiry? Is there a way for the API to implement CORS to allow a cross-domain request?