hydrogen-sailfishos / harbour-hydrogen

Apache License 2.0
7 stars 8 forks source link

With webview from gecko ESR 91 CORS errors prevent hydrogen from connecting #45

Closed b100dian closed 2 weeks ago

b100dian commented 2 months ago
$ EMBED_CONSOLE=1 /usr/bin/sailfish-qml harbour-hydrogen

JavaScript Error: "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://matrix.org/_matrix/client/r0/login?&_cacheBuster=5670328520902041. (Reason: CORS request did not succeed)~(Reason: CORS disabled)~.

This means that either security.fileuri.strict_origin_policy disablement is not any more enough (other webengine param needed) or that https is needed for hosting locally hydrogen.

b100dian commented 2 months ago

I've tested a local server.py + firefox on Linux desktop and http still works for CORS (and yes, no mention of that not working, or being changed lately - the login servers do return Access-Control-Allow-Origin: *) I also saw some flickering working CORS, as if, at first install, the login could have worked then when the page is gotten from the cache it didn't.

b100dian commented 1 month ago

Hmm maybe just moving out of the way "/home/defaultuser/.cache/harbour-sailslack/harbour-sailslack/.mozilla/ " is enough?