Access-Control-Allow-Origin:* on /Module/Get/x

8 years 9 months ago #2846 by istvank
Hi, I would like to query the latest values of my DHT22 sensor from the EasyIoT cloud. I got an Ajax script it place that queries cloud.iot-playground.com/Api/Control/Module/Get/1 (replace '1' with my module no.).

Unfortunately it's not allowed because no 'Access-Control-Allow-Origin' header is present.

Would it be hard for you to add one? That would make life easier. Or is there any other way to querying all latest values of a module?

Thanks!
István

Please Log in or Create an account to join the conversation.

8 years 9 months ago #2852 by EasyIoT

istvank wrote: Hi, I would like to query the latest values of my DHT22 sensor from the EasyIoT cloud. I got an Ajax script it place that queries cloud.iot-playground.com/Api/Control/Module/Get/1 (replace '1' with my module no.).

Unfortunately it's not allowed because no 'Access-Control-Allow-Origin' header is present.

Would it be hard for you to add one? That would make life easier. Or is there any other way to querying all latest values of a module?

Thanks!
István


Please do not use HTTP API. We are working on new REST API, much more powerful as current REST API. Just wait couple of days for docs and libraries. With new REST API you will be able to read and write values, post even more values with one request, add new sensors...

Please Log in or Create an account to join the conversation.

Time to create page: 0.479 seconds

Forum latest

  • No posts to display.