简体   繁体   中英

CORS for Google Cloud Storage Bucket (e.g. Firebase Storage) not fetching text in Safari when in iOS

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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM