fixerAPI/fixer

'Access-Control-Allow-Origin' header in the response must not be the wildcard

lokeshionixx opened this issue · 2 comments

Hi

I got an error something like below. Can you please take a look and let me know!!

Failed to load https://api.fixer.io/latest?base=USD&symbols=INR: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin 'http://localhost' is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

Sample code in Angular

getExchangeRateDetails(currency_code: string): Promise {
return this.http
.get('https://api.fixer.io/latest?base=USD&symbols=INR', this.options)
.toPromise()
.then(this.extractData)
.catch(this.handleError);
}

@lokeshionixx This reminds me of #99. It sounds like a client side issue? Have you tried reproducing outside the app?