Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - williamsj

Pages: [1]
1
Technical support / CORS request failed
« on: August 26, 2015, 07:36:14 PM »
Hi,

I'm having a bit of trouble trying to program some jave/html using a couple of FMD's. I realise this is primarily a plc programming site but hopefully someone can give me a hint.

I have 2 PLC's, plc1 and plc1. Plc1 is acting as a web server and plc2 for data collection. It has to be this way.

The problem is when browsing to plc1 and having that web page try to get data from plc2, using XMLHttpRequest and host link protocol format, I'm getting the CORS request failed, found using Firefox and Firebug.

It appears from reading that the web server needs to have "Access-Control-Allow-Origin:" appended to it's html header and I gather this doesn't occur.

Can anyone help in this area?

cheers,

john

Pages: [1]