Skip to content

Commit

Permalink
🔥 Update firebase.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
fuegovic authored Aug 29, 2024
1 parent 42a07ec commit c6ab0a1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pages/docs/configuration/firebase.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,11 @@ FIREBASE_APP_ID=1:your_app_id #appId

```bash
rules_version = '2';

service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow read, write
match /images/{userId}/{fileName} {
allow read, write: if true;
}
}
}
Expand Down Expand Up @@ -177,4 +178,4 @@ gsutil cors get gs://<your-cloud-storage-bucket>
That's it! You've successfully configured CORS for your Firebase Storage bucket to allow requests from a specific origin. Remember to replace `<your-cloud-storage-bucket>` with your actual bucket name and `https://ai.example.com` with your own domain when applying the configuration.
</Callout>
</Callout>

0 comments on commit c6ab0a1

Please sign in to comment.