Skip to content

Updated readme instructions for storage #6650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,26 @@ database. When prompted to select the set of initial security rules, select
any option (e.g. "Start in Production Mode") since these permission settings
will be overwritten below.

#### Storage Setup

Visit the "Storage" section of the console and create a storage bucket. In
order to run the tests, you will need to update your bucket's CORS rules.

1. Create a new file called `cors.json` with the contents:
```json
[
{
"origin": ["http://localhost:8089"],
"method": ["GET"],
"maxAgeSeconds": 3600
}
]
```
2. Install `gsutil` from https://cloud.google.com/storage/docs/gsutil_install
3. Run `gsutil cors set cors.json gs://<your-cloud-storage-bucket>`

For more information, visit https://firebase.google.com/docs/storage/web/download-files#cors_configuration

#### Authentication Support

Visit the authentication config in your project and enable the `Anonymous`
Expand Down