I’m trying to set up a “friendly” domain name for my API, hosted on Google Cloud Functions in the europe-west1
region. I have updated the firebase.json
file according to Googles documentation, but I get an error 403 when accessing the API via the “friendly” domain name. The following rewrites are included in my firebase.json
file:
"hosting": {
"public": "public",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "/api/**",
"function": "api"
},
{
"source": "**",
"destination": "/index.html"
}
]
}
I’m getting the following error message:
Error: Forbidden
Your client does not have permission to get URL /api/api/ical.ics from this server.
I’m likely overlooking something basic, but I’m not sure what. Can someone help me troubleshoot?