gif-player icon indicating copy to clipboard operation
gif-player copied to clipboard

Seems doesn't work for local gif?

Open Holton1 opened this issue 4 years ago • 1 comments

Hi, this project is very cool! I am making a webpage and try to add the gif-operating feature to gifs. I notice that for the same GIF, if I upload it to imgur, gif-player works; but if I just use the local URL(relative URL or absolute URL), it doesn't work. I guess I have to do something with the URL, but I am not very sure. Could you please provide some hints? Thanks!

Holton1 avatar Jul 14 '21 06:07 Holton1

That's probably because of CORS policies, you need to serve the files locally, you can just spin one by using this in your folder (where index or main.html are) python -m http.server 8000 After that you just need to go to localhost:8000 and everything should be working fine

Telsho avatar May 03 '25 08:05 Telsho