Hi,
Eval is a reserved word in JS, so that might be the culprit. If that's not
it, put the thing in a plunk, and I will help you out.
Regards
Sander
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from
For persons who encounter the same problem, I found a solution by using the
XDomain https://github.com/jpillora/xdomain third-party library. You have
to implement a proxy.html file on the remote server where the service is
located, and call the file in a script tag in the main application.
I have tested in Chrome and I obtain the message:
XMLHttpRequest cannot load
http://dev.testmyserver2/myapp.cfc?method=getUserFromLoginlogin=test'. No
'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'http://dev.testmyserver' is therefore not allowed access.
I have tested in Chrome and I obtain the message:
XMLHttpRequest cannot load
http://dev.testmyserver2/myapp.cfc?method=getUserFromLoginlogin=test'. No
'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'http://dev.testmyserver' is therefore not allowed access.
Amadese,
you can’t use Access-Control-Allow-Origin:'*' in a lot of circumstances. In
stead of a star, you must put the name of the domain you are calling in
there.
in your case, that would probably be: 'dev.testmyserver'
Hope this helps a bit,
Regards
Sander
--
You received this message
Hi,
If I use Firebug, no erro appear, the request OPTIONS appears, with the
data, but in my alert the status value is 0, in the header I can seee:
Response header
AllowGET, HEAD, POST, TRACE, OPTIONSConnectioncloseContent-Typetext/plain;
charset=UTF-8DateTue, 28 Oct 2014 07:36:17
Hi Amadese,
You seem to miss the needed headers for CORS, the server needs to provide
those. (your app seems to to ok, as you get an response to an option
request.)
With the needed headers missing, the browser will come to a full halt on
your request, and drop things off while no data comes to
Hi Amadese,
CORS is mainly a server side problem http://enable-cors.org/. Have a look
at the site I just linked. Probably the answer for your server is right
there.
Regards
Sander
--
You received this message because you are subscribed to the Google Groups
AngularJS group.
To unsubscribe
Hi Amadese,
If you open the developer tools in your browser, what is the error you are
getting?
Regards
Sander
--
You received this message because you are subscribed to the Google Groups
AngularJS group.
To unsubscribe from this group and stop receiving emails from it, send an email
to