Skip to content

Commit f3b44bd

Browse files
docs: add copyable S3 CORS configuration
Co-Authored-By: Oz <oz-agent@warp.dev>
1 parent adeb6cf commit f3b44bd

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

‎src/content/docs/platform/data-storage.mdx‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,20 @@ transiting Warp's backend.
5050

5151
Create the bucket that will hold your agent data. Warp writes objects using your bucket's own encryption settings — both SSE-S3 (the default) and SSE-KMS are supported.
5252

53-
Configure the bucket's Cross-Origin Resource Sharing (CORS) settings to allow `GET` requests from `https://*.warp.dev`. If you prefer to list origins explicitly, allow `GET` requests from `https://app.warp.dev`, `https://platform.warp.dev`, and `https://oz.warp.dev` instead. The Warp web interfaces need this access to load artifacts and conversation transcripts. See AWS's guide to [using CORS with Amazon S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/cors.html).
53+
Configure the bucket's Cross-Origin Resource Sharing (CORS) settings to allow `GET` requests from `https://*.warp.dev`. The Warp web interfaces need this access to load artifacts and conversation transcripts.
54+
55+
```json title="S3 CORS configuration"
56+
[
57+
{
58+
"AllowedHeaders": [],
59+
"AllowedMethods": ["GET"],
60+
"AllowedOrigins": ["https://*.warp.dev"],
61+
"ExposeHeaders": []
62+
}
63+
]
64+
```
65+
66+
If you prefer to list origins explicitly, replace `AllowedOrigins` with `["https://app.warp.dev", "https://platform.warp.dev", "https://oz.warp.dev"]`. See AWS's guide to [Amazon S3 CORS configuration elements](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ManageCorsUsing.html).
5467

5568
<Tabs>
5669
<TabItem label="AWS CLI">

0 commit comments

Comments
 (0)