According to the Backblaze B2 documentation: CORS: Cross-Origin Resource Sharing, I can only set cors for those capabilities :
- b2_download_file_by_id
- b2_download_file_by_name
- b2_upload_file
- b2_upload_part
I'm using b2 CLI to define CORS rules for my bucket, And all my requests work fine from my origin https:||foo.yz.
But when I try to delete a file using b2_delete_file_version API I get this error:
Access to fetch at 'https://api002.backblazeb2.com/b2api/v2/b2_delete_file_version' from origin 'https:||foo.yz' has been blocked by CORS policy
- Although it works when I send my request from postman
but when I try to add this capability: "b2_delete_file_version" to my CORS rules it shows me that message :
unknown allowedOperation value