PDA

View Full Version : [CLOSED] Call DirectMethod externally



josegarcia
Apr 29, 2014, 12:07 PM
Can i call a direct method from an external website, like an API? If yes, how?

Daniil
Apr 29, 2014, 4:48 PM
Hi @josegarcia,

We have not tried it. Theoretically it might work. Though, no guarantee.

You can try.

At least, it needs to set up this property to true.
http://docs-origin.sencha.com/extjs/4.2.1/#!/api/Ext.data.Connection-cfg-cors

and set up these headers for a response

Access-Control-Request-Method: POST
Access-Control-Request-Headers: X-PINGOTHER
according to this article:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS

Maybe, something more might be required.