riotchat icon indicating copy to clipboard operation
riotchat copied to clipboard

Element opens blank page

Open ghost1347 opened this issue 4 years ago • 10 comments

Since the last week or 2 when I open the element app, it just loads a blank page. I have updated nc and disabled and enabled the element app, even disabled and removed the element app and reinstalled it but it is still not working.

image

ghost1347 avatar Oct 07 '21 13:10 ghost1347

Strange. Are there any errors in the console?

gary-kim avatar Oct 10 '21 04:10 gary-kim

I dont think so I ran

sudo -u www-data php occ app:check-code riotchat

and it said

App is compliant - awesome job!

is there another way to check

ghost1347 avatar Oct 13 '21 01:10 ghost1347

Sorry, maybe I should have been more clear. I meant are there any errors in the browser console after you open the page? Check your browser developer tools.

gary-kim avatar Oct 14 '21 12:10 gary-kim

Oh sorry, I get this

main.js:46 Uncaught DOMException: Blocked a frame with origin "https://g*******.net" from accessing a cross-origin frame. at HTMLIFrameElement.i (https://g********.net/apps/riotchat/js/main.js?v=afee1dc5-1:2:18987)

I also tried opening it in fire fox. before I had just been opening it in chromium based browsers and it just gave the blank page but Firefox gives this

image

ghost1347 avatar Oct 14 '21 13:10 ghost1347

It should not be trying to embed matrix-client.matrix.org unless you are attempting to use one of the oauth login methods and if you are, that should redirect you to a embedded version to avoid this issue.

This is what comes up when you simply go to https://yourcloud.org/apps/riotchat/? For now, you can fix this issue by going to https://yourcloud.org/apps/riotchat/riot/ most likely but it'd be nice to know what caused the issue.

gary-kim avatar Oct 14 '21 14:10 gary-kim

https://yourcloud.org/apps/riotchat/riot/ That does work however I'd like to get it working properly too. I do not have oauth enabled, and it was working well up until a few weeks ago. Do you have any suggestions or anything I can check?

https://matrix-client.matrix.org I checked and it the default server is https://matrix-client.matrix.org

ghost1347 avatar Oct 14 '21 17:10 ghost1347

Could you provide your browser console for when you open it using the /riot link?

gary-kim avatar Oct 15 '21 17:10 gary-kim

image

ghost1347 avatar Oct 15 '21 18:10 ghost1347

Looks like you can add iframes to modify the content security policy that nextcloud pushs by default. of the things that need to get added to this list would be any domain used for a saml sso login, and the subdomain used for hosting the matrix server.

joshdotylmi avatar Jul 11 '22 16:07 joshdotylmi

how would I do that?

ghost1347 avatar Mar 22 '23 02:03 ghost1347