1
votes

I am trying to put a file into Google Cloud Storage by using API KEY. What is the proper way to do it?

I am put into an address of "https://storage.googleapis.com/my_test?key=AIzaSyD5TnLAX6N_xAuSudUYSS6k1j8UxfaV9YN"

However, I got an error saying I am missing a required header. What should be the proper way to do this?

Thanks.

Server responded with: MissingSecurityHeader; Your request was missing a required header: Authorization

1
By the way, you may find the gcloud-node project useful for doing Google Cloud Storage from node.js. - Brandon Yarbrough

1 Answers

0
votes

An API key is not an authentication mechanism. See the Authentication page for the supported authentication methods. Namely:

  • OAuth 2.0
  • Cookies
  • Service Accounts