Skip to content

Commit 629627f

Browse files
authored
Updated readme instructions for storage (#6650)
1 parent de32c24 commit 629627f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,26 @@ database. When prompted to select the set of initial security rules, select
113113
any option (e.g. "Start in Production Mode") since these permission settings
114114
will be overwritten below.
115115

116+
#### Storage Setup
117+
118+
Visit the "Storage" section of the console and create a storage bucket. In
119+
order to run the tests, you will need to update your bucket's CORS rules.
120+
121+
1. Create a new file called `cors.json` with the contents:
122+
```json
123+
[
124+
{
125+
"origin": ["http://localhost:8089"],
126+
"method": ["GET"],
127+
"maxAgeSeconds": 3600
128+
}
129+
]
130+
```
131+
2. Install `gsutil` from https://cloud.google.com/storage/docs/gsutil_install
132+
3. Run `gsutil cors set cors.json gs://<your-cloud-storage-bucket>`
133+
134+
For more information, visit https://firebase.google.com/docs/storage/web/download-files#cors_configuration
135+
116136
#### Authentication Support
117137

118138
Visit the authentication config in your project and enable the `Anonymous`

0 commit comments

Comments
 (0)