FilledStacks / FilledStacks/firebase-backend

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

Open
#36 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
61
Forks
14
PR merge metrics
No merged PRs in 30d

Description

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"

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.