XMLHttpRequest cannot load http://localhost:30/italven90/PRO

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

armin_kessler
Ebase User
Posts: 27
Joined: Sun Jan 08, 2012 2:39 am

XMLHttpRequest cannot load http://localhost:30/italven90/PRO

#1

Postby armin_kessler » Fri Jan 11, 2013 4:18 pm

In Web Resources / Client Script I try to call a web service from my
database and receive this message:
XMLHttpRequest cannot load http://localhost:30/italven90/PRODUCTOS. Origin http://localhost:3030 is not allowed by Access-Control-Allow-Origin.
Should I allow this access and where ?

Thanks Armin
0 x
Armin Kessler

User avatar
Wai
Moderator
Moderator
Posts: 165
Joined: Wed Sep 12, 2007 9:04 am
Location: Sandy, UK
Contact:

#2

Postby Wai » Mon Jan 14, 2013 4:52 pm

Hi Armin,

I don't think this is a Ebase specific problem.

I did a quick search on google and found the following:

JavaScript is limited in making AJAX requests. The limit comes out when you try to make requests outside your domain.

EG 1: Your domain is example.com, and you want to make a request to test.com => you cannot.

EG 2: Your domain is example.com, and you want to make a request to inner.example.com => you cannot.

EG 3: Your domain is example.com, and you want to make a request to example.com => you can.

JavaScript is limited by the "same origin policy" for security reasons, For example, a malicious script cannot contact a remote server and send sensitive data from your site.

This link provides more information about this restriction:
https://developer.mozilla.org/en-US/doc ... ss_control

Hope that helps
0 x


Who is online

Users browsing this forum: No registered users and 33 guests