Skip to content

Avoiding CORS preflight request for Functions when using with Firebase Hosting #2097

@urish

Description

@urish

Using Callable functions currently involves a CORS preflight request for any function call. According to Firebase hosting docs, it is possible to configure the functions to be served from the same domain as the app, thus avoiding the extra round-trip for the preflight request:

https://firebase.google.com/docs/hosting/functions#direct_requests_to_function

I'd love to see this functionality integrated into Angular Fire and officially supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions