[go: nahoru, domu]

Skip to content
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

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

Open
takaaa220 opened this issue Apr 24, 2021 · 2 comments

Comments

@takaaa220
Copy link
Contributor

I want to specify some origins for Access-Control-Allow-Origin header in callable functions to improve security as follows.

exports.newPost = functions
  .runWith({ allowOrigins: ["https://example.com", "https://sub.example.com"] })
  .onCall((data, context) => {
    // ...
  });
@google-oss-bot
Copy link
Collaborator

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@inlined
Copy link
Member
inlined commented Jul 19, 2021

Thanks for the idea. We will look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants