I am applying Cordoba I need to make a simple GET request with angular
I receive the message: "Cross-origin request blocked: Do not allow remote resources to read on the same basic policy. Can be fixed by moving in or enabling the cores. "
I thought I added all the necessary headers for my reaction. Here's the full header:
"Access-control-permission-header: Origin, with X-requested content, accept content-type, access-control-permission-origin: * Content-Encoding : Gzip Content-Length: 76 Content-Type: Application / Jason; Charset = UTF-8 Date: Mon, 16 Mar 2015 21:37:56 GMT Server: Apache-Coyote / 1.1 "
< P> I tried it in Firefox and Chrome This is extremely annoying because when I use the original iOS and end Oid was requested to do nothing I had never had a problem with my server I
I do something here ???
Did you try jsonp?
Something like this:
$ http.jsonp (API_URL + "/? Callback = JSON_CALLBACK"). Success (function (data) {// blah blah}). Terror (function () {console.log ("could not be found.");}). Finally (function () {// blah blah});
No comments:
Post a Comment