Google cloud platform 获取上载到云存储上的对象的公共url

Google cloud platform 获取上载到云存储上的对象的公共url,google-cloud-platform,cloud,google-cloud-storage,Google Cloud Platform,Cloud,Google Cloud Storage,我在云存储上上传了一个pdf文件。但当我访问url时,我会被重定向到谷歌登录页面。是否有任何方法可以获得一个公共url,该url允许直接访问文件,并且不存在CORS问题。 这是个愚蠢的错误。 使用 storage.googleapis.com// 而不是 storage.cloud.google .com/<bucketName>/<fileName> storage.cloud.google.com// 在找到问题的解决方案方面做得很好。一旦您能够,请将此问题标记

我在云存储上上传了一个pdf文件。但当我访问url时,我会被重定向到谷歌登录页面。是否有任何方法可以获得一个公共url,该url允许直接访问文件,并且不存在CORS问题。 这是个愚蠢的错误。 使用

storage.googleapis.com//
而不是

storage.cloud.google .com/<bucketName>/<fileName> 
storage.cloud.google.com//

在找到问题的解决方案方面做得很好。一旦您能够,请将此问题标记为已解决,以使其更具可视性。有人能解释wtf的进展吗on@DarrenZou问题是什么?好的,现在我明白了,但是你可以澄清一下:使用:{bucket Name}/{filename}而不是.com/{bucket Name}/{filename},因为我不知道解决方案是什么
storage.cloud.google .com/<bucketName>/<fileName>