wget in construct 2

Get help using Construct 2

Post » Mon Feb 20, 2017 12:29 am

Hey there.

I have a problem using AJAX. I simply want to get the Output of an URL, which is an IP-Adress in my local Network, but not the Same machine. So, it does not work with AJAX and I really have no clue why. It ONLY works if I install the access-control-allow-origin plugin for chrome.

Is there any way to avoid that? The URL I want to get is from an Application that offers some Data as a JSON Object.

Greets,

Spellbreaker.
B
5
S
1
Posts: 9
Reputation: 343

Post » Mon Feb 20, 2017 12:36 am

Some Additional Information: The User of my app has installed a tool on his PC which provides some Data my App needs. The App later has to work on every Device in the Local network.
B
5
S
1
Posts: 9
Reputation: 343

Post » Mon Feb 20, 2017 11:24 am

No, this is an important part of the security model of the web, and you have to make sure the resource is served with the right CORS header (i.e. Access-Control-Allow-Origin).
Scirra Founder
B
397
S
236
G
88
Posts: 24,408
Reputation: 194,506

Post » Mon Feb 20, 2017 11:39 am

So, since the Resource I try to access is a Software Tool ( which works flawless with other Programs which access it ), what can I do to make it work? If I understand correctly, the mini-web-server of the Tool has to be enabled to "Access-Control-Allow-Origin: *", right?

But why can other Programs access the Tool without problems?
B
5
S
1
Posts: 9
Reputation: 343


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 22 guests