问题
I uploaded a pdf file on cloud storage. But when i access url https://storage.cloud.google.com/[BUCKET]/[FILE].jpg i am redirected to google signin page. Is there any way to get a public url which gives direct access to file and doesnt have CORS issues.
回答1:
It was silly mistake. Use
storage.googleapis.com/<bucketName>/<fileName>
instead of
storage.cloud.google .com/<bucketName>/<fileName>
来源:https://stackoverflow.com/questions/55259932/get-public-url-for-object-uploaded-on-cloud-storage