-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Setting ORIGIN leads to wrong request url. #2615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yeah, we hijacked the emulator origin setting with the idea being that in Firebase hosting you can redirect that path to the Cloud Function. There's now a host name setting being added to Cloud Functions, so i'll move to that in a future release. |
Is there currently any way to force angular fire to use the firebase hosting url? |
Right now we only support that option. Just add the extra URL pieces ( |
The setting has been added on latest Firebase JS SDK (v8.0.0): https://firebase.google.com/support/release-notes/js#8.0.0 Subscribing to this issue to get notified of next release ;) |
Is this fixed with 6.0.4? |
We can't change the existing API without cutting a major. I'm planning on adding support for the new API in the next minor but have some patches to get through first. |
Work-around is to set the domain as the import { REGION } from '@angular/fire/functions';
...
providers: [
{ provide: REGION, useValue: 'https://example-main.web.app' },
] |
|
I have a firebase function called
helloworld
. Everything is working fine.Now I want to set the ORIGIN for the functions calls to prevent the double request for 'OPTIONS'.
As described in the docs I added following in the app module:
Expected behavior
Setting the ORIGIN should lead to function requests like:
http://example-main.web.app/helloworld
Actual behavior
Setting the ORIGIN should leads to function requests like:
http://example-main.web.app/example-main/us-central1/helloworld
Version info
The text was updated successfully, but these errors were encountered: