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

fix: Discord CSP #2

Merged
merged 1 commit into from
Sep 15, 2024
Merged

fix: Discord CSP #2

merged 1 commit into from
Sep 15, 2024

Conversation

Chizaruu
Copy link
Member

@Chizaruu Chizaruu commented Sep 15, 2024

PR to Mirror TheSleepyKoala/Svelcordot#2 changes.

Hello,

Since Discord updated their CSP (https://discord.com/channels/613425648685547541/697138785317814292/1263180507777339442) it's no longer possible to just host the files. Therefore I added the automatic addition of ".proxy" for fetch requests, since Godot's generated JS files use fetch under the hood to load files like the .wasm file. Since this is only needed in proxy mode, I also enabled that feature just for the proxy by checking for the hostname.

Hope that helps :)
Kind regards

Thanks @PrinzKenny1

@Chizaruu Chizaruu added the enhancement New feature or request label Sep 15, 2024
@Chizaruu Chizaruu merged commit c5f8007 into main Sep 15, 2024
@Chizaruu Chizaruu deleted the fix-Discord-CSP branch September 15, 2024 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant