[PR #6920] [MERGED] Support new desktop origin on CORS #36955

Closed
opened 2026-07-13 21:29:48 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/6920
Author: @dani-garcia
Created: 3/9/2026
Status: Merged
Merged: 3/9/2026
Merged by: @dani-garcia

Base: mainHead: desktop-cors-support


📝 Commits (1)

  • 05facdf Support new desktop origin on CORS

📊 Changes

1 file changed (+2 additions, -0 deletions)

View changed files

📝 src/util.rs (+2 -0)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dani-garcia/vaultwarden/pull/6920 **Author:** [@dani-garcia](https://github.com/dani-garcia) **Created:** 3/9/2026 **Status:** ✅ Merged **Merged:** 3/9/2026 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `main` ← **Head:** `desktop-cors-support` --- ### 📝 Commits (1) - [`05facdf`](https://github.com/dani-garcia/vaultwarden/commit/05facdf4e5b84557389e2823ffee3cd1164acfd3) Support new desktop origin on CORS ### 📊 Changes **1 file changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/util.rs` (+2 -0) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-07-13 21:29:48 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#36955