These are chat archives for AngularClass/angular2-webpack-starter

May 2016
Jyothi lakshmi R
May 10 2016 09:47
Hi, can any one help me in this,
console error: "XMLHttpRequest cannot load Request header field Access-Control-Allow-Origin is not allowed by Access-Control-Allow-Headers in preflight response." and please explain me how to do http header authentication in angular2
Attila Egyed
May 10 2016 09:52

the error you get has something to do with cors. i never used uber api before, try to search on the web

for ng2 authentication try also if you are not in a hurry read

this is for frontend, you also need to implement the backend counterpart

Mathijs Segers
May 10 2016 11:52
@Jyothi406 I'm pretty sure they don't allow API requests through js then if that header is not available. I'd suggest wrapping it in another server side API or figure out if they have a solution for that problem (It is not an angular issue).
May 10 2016 14:35
Do y'all happen to know of any good examples of using Webpack in an application with Angular 1 and 2 (using ngUpdgrade)?