SpacingBat3 / WebCord

A Discord and SpaceBar :electron:-based client implemented without Discord API.
MIT License
1.83k stars 94 forks source link

Activites do not load due to the Content Security Policy #525

Open strawbberrys opened 4 months ago

strawbberrys commented 4 months ago

Acknowledgements

Operating System / Platform

🐧️ Linux

Operating system architecture

x64 (64-bit Intel/AMD)

Electron version

29.0.1

Application version

4.8.0

Bug description

Attempting to launch any activity while inside of a voice channel results in a white screen being displayed instead of the activity. This comes along with the error: (node:5599) electron: Failed to load URL: https://localhost:3000/?instance_id=...... with error: ERR_BLOCKED_BY_CSP. Disabling the built-in Content Security Policy does not seem to fix this issue.

Additional context

No response

SpacingBat3 commented 4 months ago

(...) Disabling the built-in Content Security Policy does not seem to fix this issue.

If so, that would be an issue within the Discord itself. After all, with CSP disabled you should use the CSP they provide.

Also, what kind of the activity really requires to connect to a local server? A more info on that would help a lot.

strawbberrys commented 4 months ago

Also, what kind of the activity really requires to connect to a local server? A more info on that would help a lot.

Any voice channel activity I launch causes this error to throw in the console, I don't know why it requests to localhost though. Am I the only one having this issue? Only started happening a few weeks ago and it does not happen on the default client.

strawbberrys commented 4 months ago

@SpacingBat3 ?

Also, what kind of the activity really requires to connect to a local server? A more info on that would help a lot.

Any voice channel activity I launch causes this error to throw in the console, I don't know why it requests to localhost though. Am I the only one having this issue? Only started happening a few weeks ago and it does not happen on the default client.