firebase-functions icon indicating copy to clipboard operation
firebase-functions copied to clipboard

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

Open takaaa220 opened this issue 3 years ago • 2 comments

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) => {
    // ...
  });

takaaa220 avatar Apr 24 '21 04:04 takaaa220

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

google-oss-bot avatar Apr 24 '21 04:04 google-oss-bot

Thanks for the idea. We will look into it.

inlined avatar Jul 19 '21 19:07 inlined