I was able to solve this by having nginx host the files, rather than using pygbag's built-in development server.