Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Element opens blank page #419

Open
ghost1347 opened this issue Oct 7, 2021 · 10 comments
Open

Element opens blank page #419

ghost1347 opened this issue Oct 7, 2021 · 10 comments
Labels
bug Something isn't working

Comments

@ghost1347
Copy link

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

@gary-kim
Copy link
Owner

Strange. Are there any errors in the console?

@gary-kim gary-kim added the bug Something isn't working label Oct 10, 2021
@ghost1347
Copy link
Author

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

@gary-kim
Copy link
Owner

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.

@ghost1347
Copy link
Author

ghost1347 commented Oct 14, 2021

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

@gary-kim
Copy link
Owner

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.

@ghost1347
Copy link
Author

ghost1347 commented Oct 14, 2021

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

@gary-kim
Copy link
Owner

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

@ghost1347
Copy link
Author

image

@joshdotylmi
Copy link

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.

@ghost1347
Copy link
Author

how would I do that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants