Why when I load image by url, in network tab I see, that url was cropped, and, naturally, is not downloading.
This is original url:
https://i.mycdn.me/image?id=853153767941&t=0&plc=WEB&tkn=*yGN9NJlPI6EjydVkSIvfHiHTZSw
This is cropped url:
https://i.mycdn.me/image
Might be a bug in the network code. What does the code look like when you load your URL?
var url:String = "https://i.mycdn.me/image?id=853153767941&t=0&plc=WEB&tkn=*yGN9NJlPI6EjydVkSIvfHiHTZSw";
var loader:Loader = new Loader();
var request:URLRequest = new URLRequest(url);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadAvatarCompleteHandler);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadAvatarErrorHandler);
loader.load(request);
private function loadAvatarErrorHandler(e:IOErrorEvent):Void {
// ...
}
private function loadAvatarCompleteHandler(e:Event):Void {
// ...
}
I just tried this in HTML5, and got the following error:
XMLHttpRequest cannot load https://i.mycdn.me/image?id=853153767941&t=0&plc=WEB&tkn=*yGN9NJlPI6EjydVkSIvfHiHTZSw. Request header field Content-Type is not allowed by Access-Control-Allow-Headers in preflight response.
That suggests to me it is including the full URL. What version of Lime/OpenFL are you using?
1 Like
I use Lime version 3.5.2 and OpenFL version 4.5.2.
Okay, I think this has been fixed in a newer version 
1 Like
I tried Lime version 4.0.2 and OpenFL version 4.9.1 - there is okay.