I'm trying to use the AngularFire2 plugin in my Ionic 2 app to authorize against Google apis using a custom token, while developing in Chrome on my computer. It works fine testing it on my Android phone, the request works and everything. But I'm trying to get it also work in my dev environment.
The error I get while running my app in Chrome is (I removed my key):
OPTIONS https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyCustomToken?key=<mykey>
XMLHttpRequest cannot load https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyCustomToken?key=<mykey>. Response for preflight has invalid HTTP status code 404
Telling me that I have problem to make an Options pre request to Googles server. The thing is that I've installed the Chrome addon Allow-Control-Allow-Origin:* and added the "--disable-web-security" argument on Chrome start up. Which works fine for other services but not for AngularFire2, for that specific request.
I've found people having the same problem that recommend to switch to Firefox, which I wont since it breaks other plugins like SQLight storage instead. Is there a way to make this work in Chrome browser?