Skip to content

Conversation

@teohhanhui
Copy link

@teohhanhui teohhanhui commented Jul 28, 2021

This prevents http/https mismatch when the server is behind a proxy (e.g. Heroku or Cloudflare)

Example error message when trying to connect to a lobby on https://project-f.github.io/F.LF/game/game.html:

Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘http://f-lobby.herokuapp.com’) does not match the recipient window’s origin (‘https://f-lobby.herokuapp.com’).

Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘http://estonia-expo-receptor-screensavers.trycloudflare.com’) does not match the recipient window’s origin (‘http://estonia-expo-receptor-screensavers.trycloudflare.com’).

This prevents http/https mismatch when the server is behind a proxy
(e.g. Heroku or Cloudflare)
@tyt2y3
Copy link
Contributor

tyt2y3 commented Jul 29, 2021

Thank you so much. You actually tried using the Lobby and it still works?
I think it seriously need some revamp.

@teohhanhui
Copy link
Author

teohhanhui commented Jul 29, 2021

Just tested it. I can only get it to achieve 2 fps (ha!) but it works* 🤣

* At least, I could select the players from both peers and start the game successfully.

@tyt2y3
Copy link
Contributor

tyt2y3 commented Jul 29, 2021

Oh thank you for the information. Hope I can squeeze out some time to revamp it altogether!
Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants