kurin / blazer

A Go library for Backblaze's B2.
Other
126 stars 34 forks source link

support CORS #46

Open kurin opened 6 years ago

kurin commented 6 years ago

Nobody's asked for this, but it's a thing, so why not.

https://www.backblaze.com/b2/docs/cors_rules.html

fd0 commented 6 years ago

Uhm. How is this relevant to programs using blazer? CORS is a technique for accessing third-party (=not the current domain) sites via JavaScript in a Browser, other programs don't care about the headers.

Do you mean implementing functions to change the CORS rules B2 returns via blazer?

kurin commented 6 years ago

Yes, support the b2 api that allows setting that on buckets.

fd0 commented 6 years ago

Ah, thanks for the explanation.