+ 23

What is this error ?

What is this error. I have no idea about it. See the following code. I had set the crossorigin to anonymous but it still say 🤯 Just see the below code you will get it. https://code.sololearn.com/W0HMOkAz3VIa/?ref=app ⚠️ I dont need suggestions only 😂 First give me solution then suggestion Because I had tried everything after searching over internet but nothing worked for me Gone through many of code and I found same problem with every code Like these \/ https://code.sololearn.com/WzCYoQIugPpU/?ref=app https://code.sololearn.com/WcYJtlbqP1uD/?ref=app

12th May 2021, 1:49 PM
Ayush Kumar
Ayush Kumar - avatar
27 Antworten
+ 3
My first answer was wrong. Actually the server where the image is stored needs to be configured to allow cross origin use of the file. So that should be possible if you have or find a server which allows for that.
12th May 2021, 3:01 PM
Hape
Hape - avatar
+ 2
Oh huge thanks David Dolejší It worked for pixal manipulation But it is not allowing me to display that video directly in document I used append child method to append video in document. But same error raised again
13th May 2021, 4:33 AM
Ayush Kumar
Ayush Kumar - avatar
+ 2
Hmm thanks David Dolejší for your help
14th May 2021, 2:06 PM
Ayush Kumar
Ayush Kumar - avatar
+ 1
David Dolejší ok. I haven't tested it yet but that sounds reasonable.
12th May 2021, 3:12 PM
Hape
Hape - avatar
+ 1
No JESUS EDUARDO CANUL KOYOC it's not still working
12th May 2021, 3:23 PM
Ayush Kumar
Ayush Kumar - avatar
+ 1
Ok let me try from github David Dolejší
12th May 2021, 3:24 PM
Ayush Kumar
Ayush Kumar - avatar
+ 1
丹ⓨㄩک廾 Have you tried the code on different platforms? For me it had different errors on Android than on Desktop browser. (On Desktop it doesn't even have explicit errors it just doesn't work) I also tried it with a file on a server which allows cross origin resource sharing but it still doesn't work so I don't know if this problem can be solved or if SL somehow prevents us from doing this.
12th May 2021, 3:32 PM
Hape
Hape - avatar
+ 1
Dont know what is actually going on Hape David Dolejší I uploaded it on github but because of large file size it says you can't open it here you need to download it
12th May 2021, 3:35 PM
Ayush Kumar
Ayush Kumar - avatar
+ 1
The video still animates for me in canvas if i remove crossorigin anynomous but it gives security error
12th May 2021, 3:39 PM
Arnav Kumar [Less/Not Active]
Arnav Kumar [Less/Not Active] - avatar
+ 1
Yes Arnav Kumar [📕Schools📚] but I need to play video with crossorigin anonymous so that I can do Pixal manipulation
12th May 2021, 3:41 PM
Ayush Kumar
Ayush Kumar - avatar
+ 1
Then why is it saying like that ? David Dolejší
12th May 2021, 4:31 PM
Ayush Kumar
Ayush Kumar - avatar
+ 1
You did my work David Dolejší 🥺 Any way how you solved the problem of crossorigin anonymous ?
12th May 2021, 6:10 PM
Ayush Kumar
Ayush Kumar - avatar
+ 1
How to do that David Dolejší I use github rarely So I dont have much idea about it
12th May 2021, 6:14 PM
Ayush Kumar
Ayush Kumar - avatar
0
I think the server on which your web application is hosted needs to tell the browser via the http response header Access-Control-Cross-Origin that it should allow crossorigin anonymous loading of files from different origins. Since we have no control about this server here on SL I think there is not really anything we can do to solve this problem for projects on SL.
12th May 2021, 2:21 PM
Hape
Hape - avatar
0
I tried it allready JESUS EDUARDO CANUL KOYOC but it throws same error
12th May 2021, 3:26 PM
Ayush Kumar
Ayush Kumar - avatar
- 1
سلام
13th May 2021, 6:50 PM
abolfazl movahedyfar
abolfazl movahedyfar - avatar
- 1
Hy
14th May 2021, 11:46 AM
Javkshdhs If do ja do
Javkshdhs If do ja do - avatar