I stumbled several time upon CORS-policy related errors, which propelled me to run my js code (which imports images) on a python http.server.
What I understand is this : for security reasons, I cannot import something that has some origin X from a script that has another origin Y (hence the name). So far so good.
So when I both run my code and expose my ressources on the same (althrough localhost) server with python, the CORS policy has nothing to say since the images and the script have the same origin (that is, the server)
But then why doesn't it work with a script located on my computer if the images also are on it ?
Thanks for reading !