-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
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:
providers: [
{ provide: ORIGIN, useValue: 'https://example-main.web.app' },
]
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
"dependencies": {
"@angular-material-extensions/pages": "^4.0.0",
"@angular-material-extensions/password-strength": "^6.0.0",
"@angular/animations": "^9.1.12",
"@angular/cdk": "^9.2.4",
"@angular/common": "^9.1.12",
"@angular/compiler": "^9.1.12",
"@angular/core": "^9.1.12",
"@angular/fire": "^6.0.3",
"@angular/flex-layout": "^9.0.0-beta.31",
"@angular/forms": "^9.1.12",
"@angular/material": "^9.2.4",
"@angular/platform-browser": "^9.1.12",
"@angular/platform-browser-dynamic": "^9.1.12",
"@angular/platform-server": "^9.1.12",
"@angular/pwa": "^0.1001.3",
"@angular/router": "^9.1.12",
"@angular/service-worker": "~10.1.3",
"@nguniversal/express-engine": "^9.1.1",
"@nguniversal/module-map-ngfactory-loader": "^8.2.6",
"@ngx-translate/core": "^12.1.1",
"@ngx-translate/http-loader": "^4.0.0",
"@swimlane/ngx-charts": "^14.0.0",
"angulartics2": "^8.3.0",
"bufferutil": "^4.0.1",
"express": "^4.15.2",
"firebase": "^7.19.1",
"ngx-auth-firebaseui": "^4.4.0",
"ngx-clipboard": "^12.3.1",
"ngx-markdown": "^9.1.1",
"rxjs": "~6.5.5",
"tslib": "^1.13.0",
"utf-8-validate": "^5.0.2",
"ws": "^7.3.1",
"xhr2": "^0.2.0",
"zone.js": "~0.10.3"
}
Metadata
Metadata
Assignees
Labels
No labels