Can't connect to Matrix through Riot web

I’m not able to login to the homeserver through web versions of Riot. It works just fine on RiotX and Riot Desktop, but and the one I’m able to host through Nextcloud doesn’t let me sign in. It says:

Cannot reach homeserver
Ensure you have a stable internet connection, or get in touch with the server admin

Hmm this sounds odd, given you can connect with other clients. Are you using the custom homeserver name correctly, ie

Yep. I tried both and just

Can you open developer console (F12) and see if there are any errors there? Also maybe you have some browser add-ons which are stopping it from working?

Also, did you try


Here are all the errors I got:

Well, this is odd indeed since curl gives CORS headers:

$ curl -i
HTTP/2 200 
server: openresty/
date: Mon, 18 May 2020 06:21:54 GMT
content-type: application/json
content-length: 420
vary: Accept-Encoding
strict-transport-security: max-age=15724800; includeSubDomains
cache-control: no-cache, no-store, must-revalidate
access-control-allow-origin: *
access-control-allow-methods: GET, POST, PUT, DELETE, OPTIONS
access-control-allow-headers: Origin, X-Requested-With, Content-Type, Accept, Authorization

    "unstable_features": {
        "m.id_access_token": true,
        "m.require_identity_server": false,
        "m.separate_add_and_bind": true,
        "org.matrix.e2e_cross_signing": true,
        "org.matrix.label_based_filtering": true,
        "org.matrix.msc2432": true
    "versions": [

What browser, version, what OS, version and can you try disabling any add-ons that could be causing this like Privacy Badger, no script kind of things, etc?

Also I meant going to, not using it as a homeserver. We host our own Riot.

Sorry I took so long.

It seems like you were right. It was Privacy Badger that was trying to entirely block for some reason. Thanks for the help!