Posts by Matheus Rodriguez • 33 points
5 posts
-
1
votes1
answer277
viewsQ: Check http status at the angle
I have the following code, I need to check the status that the server returns to the Webapp, I have the following code: this.http.post (this.url,json) .subscribe ( res => { console.log(res); },…
-
0
votes4
answers1265
viewsA: Request JSON (http post) with Angular 2+
Type these following codes into the server file that needs to be accessed, if you have access, if you don’t, send it along with the http request at the angle. header("Access-Control-Allow-Origin:…
angularanswered Matheus Rodriguez 33 -
1
votes1
answer51
viewsA: I cannot upload the . json file
I solved the problem, just add in the webservice inside your php the following codes: header("Access-Control-Allow-Origin: *"); header("Access-Control-Allow-Headers: Content-Type");…
-
0
votes1
answer51
viewsQ: I cannot upload the . json file
I’m trying to send a file .json created within Angular for a server, and gives this error as a response: "A Jsonobject text must Begin with '{' at 1 [Character 2 line 1]", object_or_array: "Object",…
-
0
votes1
answer497
viewsQ: Login with AJAX in PHP
I’m studying about mobile apps, hybrid apps, I’m using phonegap and I’m having a problem. I cannot log in, ajax sends the variables right and php returns a value but ajax is not capturing this value…