pygame-web / pygbag

python and pygame wasm for everyone ( packager + test server + simulator )
https://github.com/pygame-web
MIT License
339 stars 40 forks source link

Update testserver.py reverting upstream change #119

Open andreagalle opened 1 year ago

andreagalle commented 1 year ago

The .self.path.endswith( are necessary, as well as the "cross-origin-embedder-policy", "unsafe-none" header.

...

114 invalid = path.endswith(".map") or path.endswith(".apk")

pmp-p commented 1 year ago

for things that are clear to me:

for those which are not:

The comment is a silly remnant of some blind experimentation. But it could be changed to without "require-corp" or "credentialless" Atomics/threads/SharedArraybufers won't work.

https://partytown.builder.io/tests/atomics/?coep=require-corp <= seems the one that work better than credentialless and is found on the targeted hosting websites.

Note that the runtime still don't use those fancy features but it may require them in the future so better be ready for them.