Skip to content

Backblaze File Storage

https://www.backblaze.com/docs/cloud-storage-command-line-tools

Terminal window
b2 account authorize

Then enter the account key ID and key secret when prompted.

To update the CORS settings for your Backblaze file storage, follow these steps:

  1. Log in to your Backblaze account.
  2. Create a json file at the root of your terminal.
[
{
"allowedHeaders": [
"*"
],
"allowedOperations": [
"s3_head",
"s3_put",
"s3_post",
"s3_get"
],
"allowedOrigins": [
"http://localhost:8000",
"http://127.0.0.1:8000",
"http://localhost",
"http://127.0.0.1",
"http://localhost:5173",
"http://127.0.0.1:5173",
],
"corsRuleName": "browserUploads",
"exposeHeaders": [
"etag",
"x-bz-content-sha1"
],
"maxAgeSeconds": 3600
}
]
  1. Run the following command to update the CORS settings:
Terminal window
b2 bucket update --cors-rules "$(<./{<path_to_file>})" <bucket_name>