[AngularJS] CORS error passing customized http headers

2019-04-25 Thread NANA DARKO
I am making a request to an API and passing a customized header but i get this error: Access to XMLHttpRequest at 'https://adb1-api.mesika.org:3/bulkpayment-api/bank/payment-providers/list-bank-sort-codes/' from origin 'http://localhost:4200' has been blocked by CORS policy: Request

[AngularJS] CORS error passing customized HTTP headers to API

2019-04-25 Thread NANA DARKO
I am making a request to an API and passing a customized header but i get this error: Access to XMLHttpRequest at ' https:///bulkpayment-api/bank/payment-providers/list-bank-sort-codes/

Re: [AngularJS] CORS error passing customized HTTP headers

2019-04-25 Thread 'Lucas Lacroix' via Angular and AngularJS discussion
This is nothing to do with Angular. You need to reconfigure your API server: https://www.w3.org/TR/cors/ You probably need to add the custom header to the Access-Control-Expose-Headers value. Look for a middleware for your server technology (ex. for ExpressJS: https://www.npmjs.com/package/cors).

[AngularJS] CORS error passing customized HTTP headers

2019-04-25 Thread NANA DARKO
I am making a request to an API and passing a customized header but i get this error: Access to XMLHttpRequest at 'https:///payment-providers/list/

Re: [AngularJS] CORS error passing customized HTTP headers

2019-04-25 Thread NANA DARKO
I am connecting to an external API and I have pointed this out to them but they claim to have done it. On Thu, 25 Apr 2019 at 10:09, 'Lucas Lacroix' via Angular and AngularJS discussion wrote: > This is nothing to do with Angular. You need to reconfigure your API > server:

[AngularJS] ERROR Error: Uncaught (in promise): Error: Row 0 has 0 columns, but must have 2

2019-04-25 Thread mail2shubhamtyagi007
Hello, I am working on a URL shortener. I am using Ng2GoogleChartModule in my AnalyticsComponent. I have a table where I have multiple short URL. When I choose the first URL and see the analytics of the first URL first time when my component is initialized it displays the data in the geo chart

Re: [AngularJS] Re: Initialize application with parameters

2019-04-25 Thread sanderelias
Hi Paulo, Have a look at this: https://www.intertech.com/Blog/angular-4-tutorial-run-code-during-app-initialization/ If you still run into trouble, just come back here and I will help you along. Regards Sander -- You received this message because you are subscribed to the Google Groups

Re: [AngularJS] Re: Initialize application with parameters

2019-04-25 Thread sanderelias
Oh I forgot, you need to parse the url with the browsers URL parser don't use Angular stuff there, as it will probably just backfire. -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS

[AngularJS] disabling link after 1 click

2019-04-25 Thread Polsani Hema
I used ng-disabled in tag but it is not working.Could you please suggest me another approach. Cancel -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send