gif-player
gif-player copied to clipboard
Seems doesn't work for local gif?
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!
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