You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: pmtiles/cloud-storage.md
+10-12
Original file line number
Diff line number
Diff line change
@@ -40,26 +40,24 @@ Storage services usually bill by number of GET requests and the total number of
40
40
41
41
* R2 supports HTTP/2.
42
42
43
-
* R2 CORS can be configured through a command-line utility, like the `aws` tool, or from your S2 bucket's "Settings" tab's "CORS Policy" section:
43
+
* R2 CORS can be configured through a command-line utility, like the `wrangler` tool, or from your Cloudflare R2 bucket's "Settings" tab's "CORS Policy" section:
44
44
45
45
```json title="cors_rules.json"
46
46
{
47
-
"CORSRules": [
48
-
{
49
-
"AllowedOrigins": ["https://example.com"],
50
-
"AllowedMethods": ["GET","HEAD"],
51
-
"AllowedHeaders": ["range","if-match"],
52
-
"ExposeHeaders": ["etag"],
53
-
"MaxAgeSeconds": 3000
54
-
}
55
-
]
47
+
"allowed": {
48
+
"origins": ["https://example.com"],
49
+
"methods": ["GET","HEAD"],
50
+
"headers": ["range","if-match"],
51
+
},
52
+
"exposeHeaders": ["etag"],
53
+
"maxAgeSeconds": 3000
56
54
}
57
55
```
58
56
59
-
Example of using the `aws` command line tool to configure R2 CORS:
57
+
Example of using the `wrangler` command line tool to configure R2 CORS:
0 commit comments