简体   繁体   English

在iOS中,Google Cloud Storage Bucket(例如Firebase Storage)的CORS无法在Safari中获取文本

[英]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: 我根据以下内容为我的Google Cloud Storage Bucket设置了CORS:

https://cloud.google.com/storage/docs/cross-origin#Configuring-CORS-on-a-Bucket 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/ 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. 我的网页通过jscript例程获取Google Cloud Storage Bucket中包含的.txt和.jpg文件的内容。 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. 尽管上述设置适用于Web和.jpg文件的iOS上的Safari,但不适用于.txt文件的iOS上的Safari。 I tend to believe there is something wrong in the CORS headers. 我倾向于认为CORS标头中有问题。 However, I'm still not able to figure this out. 但是,我仍然无法弄清楚。 Does anybody have any idea on this? 有人对此有任何想法吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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