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

Can't join (federated) channels due to missing CORS header on app.element.io (affects Web & Mobile) #28012

Closed
Nexus2k opened this issue Sep 4, 2024 · 2 comments
Labels
A-Federation O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect

Comments

@Nexus2k
Copy link

Nexus2k commented Sep 4, 2024

Steps to reproduce

  1. Where are you starting? What can you see?
  • I've got an invitation to join a room/DM from a self-hosted matrix instance
  1. What do you click?
  • I try to click "Start chatting" but receive a 502 error CORS error messages in the Developer Console

On Mobile (Android 14) I do receive an HTTP error 502 during the same action/attempt to join.

Outcome

What did you expect?

Able to join the chat room

What happened instead?

I receive an error about a missing CORS header:

Access to fetch at 'https://matrix-client.matrix.org/_matrix/client/v3/join/XXXXXXXX' from origin 'https://app.element.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Operating system

Windows

Browser information

Chrome 128.0.6613.120 (Offizieller Build) (64-Bit)

URL for webapp

https://app.element.io/

Application version

Element version: 1.11.76 Crypto version: Rust SDK 0.7.1 (c8c9d15), Vodozemac 0.6.0

Homeserver

matrix.org

Will you send logs?

Yes

@dosubot dosubot bot added A-Federation O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround labels Sep 4, 2024
@Nexus2k
Copy link
Author

Nexus2k commented Sep 4, 2024

This problem is no longer reproducible. Not sure if something was fixed on element.io side.

@Nexus2k Nexus2k closed this as completed Sep 4, 2024
@t3chguy
Copy link
Member

t3chguy commented Sep 12, 2024

Not sure if something was fixed on element.io side.

It would have been a matrix.org issue, given it is the server which is responsible for sending the CORS headers as per the Matrix spec: https://spec.matrix.org/v1.11/client-server-api/#web-browser-clients

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Federation O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect
Projects
None yet
Development

No branches or pull requests

2 participants