Can WISE and ADAM accept the REST http request from different IP address? - ADAM-6000 Series - Remote IO Modules ADAM Series - ADAM Forum – Industrial Automation Solution Forum
Register   |   Login

Print

Can WISE and ADAM accept the REST http request from different IP address?

Can WISE and ADAM accept the REST http request from different IP address?

I have been trying to get the WISE-4060 module working with JSON communication.

The unit worked fine when reading Digital Inputs/Outputs through the web server.
There is no problem to toggle Digital Outputs from web server either.
I can basically achieve the same functionality through Chrome Advanced Rest Client – using
GET request to read DI/DO and PUT request to set/reset Digital Output.

However, when I’m trying to toggle Digital Output from HTML using jQuery, I’m getting the
following error message:
“No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null'
is therefore not allowed access. The response had HTTP status code 400.”

The html file is on my PC (no web server).
As far as I understood since I’m doing an XMLHttpRequest to a different domain than my page
is on (in my case on my local PC) the browser is blocking it as it usually allows a request in the
same origin for security reasons.

Would you have a solution to this problem (e.g. JSONP)?

IAG_FAQ_ADAM_WISE_Can WISE and ADAM accept the REST http request from different IP address

http://downloadt.advantech.com/download/downloadsr.aspx?File_Id=1-139KZMO&utm_source=ADAMForum&utm_medium=Link&utm_campaign=SR-ADAMForum
Document No.1-2280808513

TOP

Quick search in Advantech Support Portal