firebase-functions
firebase-functions copied to clipboard
Firebase SDK for Cloud Functions
I want to specify some origins for Access-Control-Allow-Origin header in callable functions to improve security as follows. ```typescript exports.newPost = functions .runWith({ allowOrigins: ["https://example.com", "https://sub.example.com"] }) .onCall((data, context) => {...
### [REQUIRED] Describe your environment * Operating System version: Windows 10 * Browser version: Chrome 84 * Firebase SDK version: 7.16.1 * Firebase Product: database ### [REQUIRED] Describe the problem...
## Rationale 1) From https://github.com/firebase/firebase-tools/issues/1480#issuecomment-509690208 > That's what we get for relying on internal APIs 2) https://github.com/firebase/firebase-functions/issues/529 ## Overview It seems that issues caused by the necessity to expose internal...
Proposed changes: - Update `@types/lodash` from 4.14.161 to 4.14.170 - Update `@types/cors` from 2.8.5 to 2.8.10 - Update `firebase-admin` from 9.8.0 to 9.10.0 - Update `lodash` from 4.17.14 to 4.17.21...
In [this video](https://www.youtube.com/watch?v=LOeioOKUKI8), firebase functions can successfully integrate with node.js application, specifically express framework. I want to use [fastify](https://www.fastify.io/benchmarks/) framework because it has better performance than express. Unfortunately, when I...
### Related issues ### [REQUIRED] Version info **node:** 10.22.0 **firebase-functions:** 3.11.0 **firebase-tools:** 8.9.0 **firebase-admin:** 8.13.0 ### [REQUIRED] Test case ``` const firebaseFunctions = require('firebase-functions'); try { throw new Error('Message from...
Since we're working on a v3 release, it might be wise to revise the API of the library. Multiple types are exposed that seem not necessary, which might result in...
### Related issues None found. ### [REQUIRED] Version info **node:** v10.16.0 **firebase-functions:** v3.1.0 **firebase-tools:** v7.0.2 **firebase-admin:** v8.2.0 ### [REQUIRED] Test case This will compile, whereas it shouldn't: ```ts const error...
The comment at line 215 of src/providers/testLab.ts contains `TEST_NON_APP_HOSTED` while the code at line 252 contains `TEST_NOT_APP_HOSTED`, ie "NON" vs "NOT": https://github.com/firebase/firebase-functions/blob/e32e8cc92993ed47fc665bbacf735e38d87cc7f4/src/providers/testLab.ts#L215 https://github.com/firebase/firebase-functions/blob/e32e8cc92993ed47fc665bbacf735e38d87cc7f4/src/providers/testLab.ts#L252
### [REQUIRED] Version info **node:** v16.13.1 **firebase-functions:** 4.0.0-rc.0 (also reproduced with 3.24.1) **firebase-tools:** N/A (in yarn.lock) **firebase-admin:** 11.1.0 ### [REQUIRED] Test case ``` const admin = require('firebase-admin'); const functions =...