Skip to content

Commit a55236a

Browse files
committed
Added FAQ on Cloud Function CORS issue
1 parent 2995e2f commit a55236a

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

docs/ff-concepts/adding-customization/cloud-functions.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,30 @@ If you encounter deployment errors, it may be helpful to check out [this communi
281281

282282
</details>
283283

284+
<details>
285+
<summary>I am getting "Error: Unable to initialize Storyboard</summary>
286+
<p>
287+
This error typically occurs because the initial page has n
288+
</p>
289+
</details>
290+
291+
<details>
292+
<summary>Why am I getting a CORS error when executing my Cloud Function?</summary>
293+
<p>
294+
The CORS error occurs because the **Access-Control-Allow-Origin** header is missing from the response, preventing your request from being completed. This issue can arise with new Cloud Functions, whether deployed through FlutterFlow or not.
295+
296+
Follow the steps below to fix the issue:
297+
298+
1. Open your Google Cloud Project's [**Cloud Functions List**](https://console.cloud.google.com/functions/list)
299+
2. Select the function causing the issue.
300+
3. Navigate to the **Permissions** tab.
301+
4. Open the **VIEW BY ROLES** tab.
302+
5. Ensure there's a row with `Cloud Functions Invoker` with principal set to `allUsers`. If it’s missing, click on the **Grant Access**, add `allUsers` with the `Cloud Functions Invoker` role.
303+
304+
![add-cf-invoker-role](imgs/add-cf-invoker-role.avif)
305+
</p>
306+
</details>
307+
284308

285309

286310

Binary file not shown.

0 commit comments

Comments
 (0)