You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you can't mix 127.0.0.1 and localhost url, only use localhost or browser restrictions will apply.
Okay, fine. However, is there a way to remove these restrictions? This can actually be inconvenient for users.
Additionally, when I use pygbag --bind 0.0.0.0 pygame_demo to start the game (expecting the effect of unrestricted IP access within the same LAN through the port), an error appears on the page, and the address for accessing static resources is https://0.0.0.0:8000/xxxx. Is there a way to solve this issue?
no all browsers enforce them, the only hostname relaxed is "localhost"
Keep also in mind too that other restrictions may apply when hosting on Non-ssl (either wan or lan ) like camera/micro access and outgoing ssl connexions prohibited.
either use pygbag localhost , or use a ssl enabled server.
what should I do now? I want people to access my game through that URL & my ssh server that my school provides only allows for that URL. Therefore, how do I enable SSL?
probably it is better to ask your educators to integrate python+games in cursus, instead of trying to breach local security. You could also try to pack your game to a single (big) html file eg https://pmp-p.github.io/python3.html
This is the code we are using: https://github.com/HansBug/pygame_demo
When the page of pygbag is opened, it stuck at the
Downloading
page.This is the full console log on chrome browser
It seems that there is cross origin problem on this web service? So how to solve this.
Our environment:
The text was updated successfully, but these errors were encountered: