3
votes

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. enter image description here

1

1 Answers

3
votes

It was silly mistake. Use

storage.googleapis.com/<bucketName>/<fileName> 

instead of

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