victory460

Ajax about Cross-domain in the WaveForms Live

Recommended Posts

 WaveFormsLive  sendData to OpenScope MZ in Ajax, in the situation,it related to Cross-domain problem. Which ways to solve the problem in  the  current project?

Share this post


Link to post
Share on other sites

Hey,

We use the cross-origin request header to allow WaveForms Live to talk to the OpenScope hardware.   More general info about the cross origin request header can be found here.

 

-Kristoff

Share this post


Link to post
Share on other sites
On 12/4/2017 at 3:57 PM, Kristoff said:

Hey,

We use the cross-origin request header to allow WaveForms Live to talk to the OpenScope hardware.   More general info about the cross origin request header can be found here.

 

-Kristoff

Thanks a lot.That is to say ,Program in openscopeMZ board to set Http.header ?

Share this post


Link to post
Share on other sites

Yes that it correct.  WaveForms Live sends an HTTP OPTIONS request to the OpenScope MZ before the first communication.  The OpenScope MZ response contains the Access-Control-Allow-Origin header.  

-Kristoff

Share this post


Link to post
Share on other sites
On 2017/12/13 at 5:34 AM, Kristoff said:

Yes that it correct.  WaveForms Live sends an HTTP OPTIONS request to the OpenScope MZ before the first communication.  The OpenScope MZ response contains the Access-Control-Allow-Origin header.  

-Kristoff

Thanks a lot.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now