firebase / firebase/firebase-functions
Feature Request: Allow to change Access-Control-Allow-Origin header in callable functions
Open
feature request
- Dominant language
- TypeScript
- Stars
- 1.1k
- Forks
- 232
- Avg merge
- 20h 46m
- Merged PRs (30d)
- 15
Description
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) => {
// ...
});
```
Contributor guide
Assessment
This issue has not been assessed yet.