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:

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/

[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/

[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