0

I set up CORS for my Google Cloud Storage Bucket according to this:

https://cloud.google.com/storage/docs/cross-origin#Configuring-CORS-on-a-Bucket

and by following this article:

https://bitmovin.com/faq/how-do-i-set-up-cors-for-my-google-cloud-storage-bucket/

My web page fetches the content of .txt and .jpg files contained in my Google Cloud Storage Bucket via a jscript routine. While the set up described above works for the web and on Safari in iOS for the .jpg files, it does not work on Safari in iOS for the .txt files. I tend to believe there is something wrong in the CORS headers. However, I'm still not able to figure this out. Does anybody have any idea on this?

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
Stefano
  • 33
  • 1
  • 7
  • If you access the files from within an actual iOS app there should be no need to use CORS in the first place. What precisely do you mean when you say *"on iOS"*? – luk2302 Mar 11 '18 at 21:40
  • You are right, I should have better elaborate. Access on iOS = Access the web page in iOS (no App involved but only Safari). Just updated my question – Stefano Mar 11 '18 at 22:20
  • Also tried this: https://stackoverflow.com/questions/40809219/problems-with-cross-origin-resource-sharing-both-osx-safari-and-ios-safari-fail but doesn't seem to work in my case – Stefano Mar 17 '18 at 19:18