Oh, I experienced this as well, if you want to use SimpleHTTPServer then I found this python script which seems to work well. It’s not related to cargo web, as it produces a wasm module, and uses its own server which corrects for the non-universal mime-typing.
# -*- coding: utf-8 -*-
#test on python 3.4 ,python of lower version has different module organization.
from http.server import HTTPServer, BaseHTTPRequestHandler
PORT = 8080
Handler = http.server.SimpleHTTPRequestHandler
'': 'application/octet-stream', # Default
httpd = socketserver.TCPServer(("", PORT), Handler)
print("serving at port", PORT)
Ah, no I’ve never worked with the web (Besides the calculator on my GitHub page), so I wouldn’t know much about AWS, this is only the second project I’ve done in the web. Sorry for the letdown. But it is a problem with the mime type configuration on the sever so perhaps consult with the AWS documentation?