Skip to content

Firebase hosting rewrite to function doesn't work with firebase-backend #36

@doubler84

Description

@doubler84

I try to call the rest api from a single page application. I use the features of firebase hosting rewriting ("https://firebase.google.com/docs/hosting/full-config#rewrite-functions"), it allow to call a firebase function without CORS errors.
When i try to call the firebase function deployed with firebase-backend i have this response:
Cannot POST /addUserRole/addUserRole
If i try to call the firebase function with POSTMAN it works.

You can check documentation about firebase hosting rewrite here:
"https://firebase.google.com/docs/hosting/full-config#rewrite-functions"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions