Support new desktop origin on CORS #71

Closed
opened 2026-04-05 20:29:31 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @dani-garcia on 3/9/2026

The desktop app is moving to a new custom file scheme in a couple of versions, following electron's security guidance.

To ensure the app keeps working, the server needs to be properly configured to support CORS, here's the upstream change.

The desktop app change is still not ready, but I want to make sure that we have this ready so that the app doesn't break.

*Originally created by @dani-garcia on 3/9/2026* The desktop app is moving to a new custom file scheme in a couple of versions, following [electron's security guidance](https://www.electronjs.org/docs/latest/tutorial/security#18-avoid-usage-of-the-file-protocol-and-prefer-usage-of-custom-protocols). To ensure the app keeps working, the server needs to be properly configured to support CORS, here's [the upstream change](https://github.com/bitwarden/server/blob/4732d7fcd2910ead8427e514b307b8ed6cd38a4b/src/Core/Utilities/CoreHelpers.cs#L651). The desktop app change is still not ready, but I want to make sure that we have this ready so that the app doesn't break.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#71