Skip to content

Commit 08ca9ab

Browse files
committed
Update README
1 parent 353160c commit 08ca9ab

File tree

1 file changed

+53
-1
lines changed

1 file changed

+53
-1
lines changed

README.md

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,48 @@ Click on `"Permissions"` tab.
100100
On `"CORS configuration"` add the following configuration:
101101

102102
```
103-
todo
103+
[
104+
{
105+
"AllowedHeaders": [
106+
"Authorization",
107+
"x-amz-date",
108+
"x-amz-content-sha256",
109+
"content-type"
110+
],
111+
"AllowedMethods": [
112+
"PUT",
113+
"POST",
114+
"DELETE",
115+
"GET"
116+
],
117+
"AllowedOrigins": [
118+
"*"
119+
],
120+
"ExposeHeaders": [
121+
"ETag"
122+
]
123+
}
124+
]
125+
```
126+
127+
On `AllowedOrigins`:
128+
129+
```
130+
"AllowedOrigins": [
131+
"*"
132+
]
133+
```
134+
135+
You should list the URLs allowed, e.g.:
136+
137+
```
138+
"AllowedOrigins": [
139+
"https://example.com"
140+
]
104141
```
105142

106143
https://uppy.io/docs/aws-s3-multipart/#S3-Bucket-Configuration
144+
107145
https://uppy.io/docs/aws-s3/#S3-Bucket-configuration
108146

109147
### Disable CSRF
@@ -267,6 +305,14 @@ $extraJSForOnUploadSuccess = "
267305

268306
Default `extraJSForOnUploadSuccess` value is empty string.
269307

308+
### Clear caches
309+
310+
Run:
311+
312+
```
313+
php artisan optimize
314+
```
315+
270316
## Complete Example
271317

272318
## Testing
@@ -292,6 +338,12 @@ Please review [our security policy](../../security/policy) on how to report secu
292338
- [Tapp Network](https://github.com/TappNetwork)
293339
- [All Contributors](../../contributors)
294340

341+
### Libraries used in this package:
342+
343+
- [AWS SDK for PHP](https://github.com/aws/aws-sdk-php)
344+
- [Uppy](https://uppy.io)
345+
- [AlpineJS](https://github.com/alpinejs/alpine)
346+
295347
## License
296348

297349
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

0 commit comments

Comments
 (0)