CORS request not working in Safari

后端 未结 13 1461
忘掉有多难
忘掉有多难 2020-11-27 06:04

I am making a CORS xhr request. This works fine in chrome, however when I run in safari I get an \'Can not load ---- access not allowed by Access-control-allow-origin\'.

13条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-27 06:37

    For CORS request you should be using your origin fflog.storage.googleapis.com. If you use common storage.googleapis.com origin, any site can access to your bucket.

    have try try remove overrideMimeType? If you set mime type, it will return correctly.

    I also have problem with Safari POST request, but no answer yet. GET is OK.

提交回复
热议问题