Linked Questions
14 questions linked to/from How to make CORS-enabled HTTP requests in Angular 2?
0 votes
0 answers
684 views
Getting 'No Access-Control-Allow-Origin header is present on the requested resource' error when trying to pass jwt tokens in Ionic 3 [duplicate]
I'm learning Ionic 3 and have successfully implemented authentication registration etc. But after the auth process I could not send the stored tokens to any protected page. This is the error that I'm ...
0 votes
0 answers
44 views
Http get service in angular 2 [duplicate]
I am trying to fetch data from a Spring boot ReST Micro service which gives me data ( username and password) in JSON format ( [{"username":"Mark","password":"mark123"}] ) through its endpoint "http://...
146 votes
14 answers
389k views
How to proxy API requests to another server?
With the Angular CLI ng serve local dev server, it's serving all the static files from my project directory. How can I proxy my AJAX calls to a different server?
0 votes
1 answer
8k views
No 'Access-Control-Allow-Origin' header is present on the requested resource - Ionic 2 [duplicate]
I have a rest web service and now I want to make a post request from ionic 2 frontend app to authentication rest method. On my login component I have: ...this._restClient.post( '...
3 votes
3 answers
5k views
Angular HTTP GET request not working as expected
I am trying to get information from the following url: https://fantasy.premierleague.com/drf/entry/2241/event/14/picks. Pasting this in a browser shows the actual data that I expected to get when ...
0 votes
1 answer
3k views
Response with status: 200 Ok for URL: null error for angular2.0 http post
I am trying to post data using http in angular 2,i added a http call with added api to it and when i click the button it should post data to my db,in cosole it shows error XMLHttpRequest cannot load ...
1 vote
2 answers
2k views
Form submitted successfully with No 'Access-Control-Allow-Origin' console error
I tried to submit the HTML Form in the following ways. Single demo HTML File. - It works (No errors and HTTP 200 response code) Submitted the form using the Chrome POSTMAN plugin - It works (No errors ...
0 votes
1 answer
1k views
Access Control Allow Origin issue in Angular 2 http services
I facing issue with fetching data from my laravel server. This is client side code: private surveysUrl = 'http://107.170.59.79/services/public/api/v1/countries'; private headers = new Headers({'...
1 vote
2 answers
1k views
Local hosted API not accessible from Angular 4 http
I've got a very strange issue. local hosted PHP Slim App using XAMPP (localhost:4040) local hosted Angular 4 App using CLI (localhost:4200) Making API Requests using "Postman" and browser is no ...
1 vote
0 answers
1k views
Angular2 http.get not working for external url
I was building an Angular2 app and use http.get to get JSON data. The issue is that for a local file, it is working perfectly. this.http.get('data.json').map((res:Response) => res.json()) But I ...
0 votes
2 answers
935 views
POST method not working in Angular2
I am new in Angular2. I am trying to call simple java REST call from Angular2. When I am posting data I am not getting error at all but my java post method is not called. Angular2 POST- let emplyee =...
2 votes
1 answer
614 views
Angular/Ionic handling successful 200 as an error
I'm using ionic with a google cloud function and when I return data to my application angular defaults to handling it as an error. Here's my cloud function call back using node: I have already tried ...
0 votes
1 answer
700 views
Fetching contributions SVG image from Github throws CORS error in a website created using Angular [duplicate]
I am trying to learn Angular by developing a website and I am getting the following error when I am trying to HTTP get my Github contributions from Github and showing them on the website. Failed to ...
0 votes
0 answers
289 views
Angular 2 'Access-Control-Allow-Origin' Issue when requesting API call
Hey I am facing this Issue when I am Hitting API from my angular 2 application No 'Access-Control-Allow-Origin' header is present on the requested resource. How to send header request in get method ...