KitCat
KitCat

Reputation: 243

firebase storage cors. IOError: [Errno 2] No such file or directory: u'cors-json-file.json'

I'm familiar with firebase and fire storage, but new to G-Cloud-SDK. I found this topic https://groups.google.com/forum/#!msg/firebase-talk/oSPWMS7MSNA/RnvU6aqtFwAJ and tried to copy the results, but get "IOError: [Errno 2] No such file or directory: u'cors-json-file.json'" from the terminal.

I found a bit more information in the docs https://cloud.google.com/storage/docs/configuring-cors#configure-cors-gsutil and it describes the same process, and I get the same error.

I'm finding it hard to do any troubleshooting with Google Cloud SDK since I have already setup functions in Firebase.

Upvotes: 0

Views: 1289

Answers (2)

Varaj Vignesh
Varaj Vignesh

Reputation: 341

gsutil cors set cors.json gs://example-bucket

Example: If the cors.json file in the d: drive then the path will be like d:/folderName/cors_filename. The gs url is your bucket url.

Upvotes: 1

KitCat
KitCat

Reputation: 243

I did not move my local directory to my 'cors-json-file.json' ...

Upvotes: 0

Related Questions