firebase / firebase/firebase-functions

Feature Request: Allow to change Access-Control-Allow-Origin header in callable functions

Open
#882 2 comments 2 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.