Skip to content
Discussion options

You must be logged in to vote

Got the answer for this issue, actually Firebase don't allow to fetch files directly (obviously for security reasons, except native web files like images). To access GLB files we need to change CORS header, which are not just rules that can be changed in Firebase>Rules.

Here is the steps to Change CORS Headers:
Step1: Create cors.json file:
[ { "origin": ["https://your-website.com"], "method": ["GET"], "maxAgeSeconds": 3600 } ]

....here in origin add the url of your site from where request is sent, to accept it from every site add this "origin": ["*"],

Step2: Download GSUTIL from here
You can follow this steps gsutil installation guide

Step3: After intsallation open gCloud command line an…

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
8 replies
@nirajmohanrana
Comment options

@elalish
Comment options

@elalish
Comment options

@nirajmohanrana
Comment options

@elalish
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by elalish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants