This seems like it should be straight-forward enough. I don’t control the server-side implementation so I can’t just add the headers there. Am I overlooking something completely obvious or is there a bigger problem? Is there an example project somewhere that this actually works? My understanding is that the origin/referrer request headers should be cleared?
ionic.config.json:
...
"proxies": [
{
"path": "/api",
"proxyUrl": "http://api.nicehash.com/api"
}
]
provider:
...
private apiUrl = '/api';
getApiVersion(): Observable<string> {
return this.http.get(this.apiUrl)
.map(this.extractData)
.catch(this.handleError);
}
...
“Proxy added” line in ionic serve log:
Console Error (also logged when using DevApp):
Network Request: