Can't load images from another server in Safari

I’ve stuck and don’t know what to do.
I’m using really simple code to load external image into game. Here is a test script I’ve made to load image and display it on screen:

using UnityEngine;
using UnityEngine.Networking;
using UnityEngine.UI;

public class LoadImage : MonoBehaviour
{
    [SerializeField] private string _url;

    private void OnEnable()
    {
        StartCoroutine(LoadTexture());
    }

    private IEnumerator LoadTexture()
    {
        var uwr = UnityWebRequestTexture.GetTexture(_url);

        yield return uwr.SendWebRequest();

        var image =  gameObject.GetComponent<Image>();
        var texture = ((DownloadHandlerTexture) uwr.downloadHandler).texture;
        image.sprite = Sprite.Create(texture, new Rect(0f, 0f, texture.width, texture.height), new Vector2(0.5f, 0.5f));
    }
}

Everything works fine, but in Safari image is not loading. It’s not even sending request to load it.
JS Console output:
4979786--485564--2019-09-19 14-37-50 z9yfv.png

I’ve disabled prevent cross-site tracking in Safari setting and it works. But unfortunately be default this option is on.


Looking for any suggestions here.

Switching to Unity 2019.1.0f2 resolved this issue

i use 2019.2.0f1 and i have the same problem. Can someone help?

Just switch to another Unity version, in my case 2019.1.0f2 worked fine

Have you switched from a new version to an old one? When trying to do this, I have a lot of errors.

I just checked and found out that it works if I open applications on my site, but it doesn’t work when I try to download my application in iframe on another site (from my site), is there any solution?

This could either be a CORS security restriction (see e.g. Cross-Origin Resource Sharing (CORS) - HTTP | MDN) or an iframe security sandboxing limitation (العب بأمان في إطارات IFrames المتوافقة مع وضع الحماية  |  Articles  |  web.dev). Check out the browser console logs and network tab for clues as to what might be failing.

Well they said there’s nothing in the console … it seems as if Safari doesnt bother to make the request, even. It doesnt appear in the network tab

I have the same issue actually. I seem to have solved it by adding a suffix slash ‘/’.

So my original url was: http://www.server.com/path/image.php?which=tree.png
that has now become http://www.server.com/path/image.php/?which=tree.png