Rule Machine API

I do this often. It is especially useful for many of my apps, including webcore.

1 Like

That said, I haven't tested the returning of JSON in the attribute call for Maker API,

EDIT: Now I have.... Most you will hopefully have to deal with is escaped quotes and likely other escaping....

3 Likes

Magnificent!

Thank you, works like a charm!
obrazek

1 Like

Just a follow-up, CORS renders this more or less unusable as there is a missing header in the json response... So I get the JSON response, but unless I disable CORS in the client, it is blocked...

EDIT: Is there a way to include / enable the ' Access-Control-Allow-Origin: * ' header?

There's a setting towards the top of the Maker API page where you can enter hosts. If it's from outside the network you would need to turn that option on further towards the top of the Maker API page.

I saw that, thank you, but regardless of what I set there no header resolving CORS is present in the response... I've gone through Node-red so I don't have to deal with this now :slight_smile:

1 Like