Skip to content

Commit 8358fb5

Browse files
authored
Merge 068d338 into de32c24
2 parents de32c24 + 068d338 commit 8358fb5

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-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`

packages/storage/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cors.json

0 commit comments

Comments
 (0)