Code-Bullet / Chess-AI

Using minimax i created a chess AI
98 stars 47 forks source link

Pieces Not Loading #1

Open GrantStenger opened 6 years ago

GrantStenger commented 6 years ago

When I run this in Chrome I'm getting the following error: "Access to Image at 'file:///Users/Home/Chess-AI/Chess/assets/2000px-Chess_Pieces_Sprite_01.png' from origin 'null' has been blocked by CORS policy: Invalid response. Origin 'null' is therefore not allowed access."

Thoughts?

Thanks!

machinsk commented 5 years ago

@gstenger98 you need you launch it from a server service, like SimpleHTTPServer, eg. open a terminal in the Chess directory, python -m http.server 8085 8085 being the port number to run on then http://0.0.0.0:8085/ into chrome

ghost commented 3 years ago

or php -S 127.0.0.1:9050