[PR #5293] [MERGED] Allow adding connect-src entries #2616

Closed
opened 2025-10-09 18:08:19 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/5293
Author: @BlackDex
Created: 12/14/2024
Status: Merged
Merged: 12/15/2024
Merged by: @dani-garcia

Base: mainHead: allow-custom-forward-api


📝 Commits (1)

  • e59472b Allow adding connect-src entries

📊 Changes

3 files changed (+22 additions, -2 deletions)

View changed files

📝 .env.template (+8 -0)
📝 src/config.rs (+11 -0)
📝 src/util.rs (+3 -2)

📄 Description

Bitwarden allows to use self-hosted forwarded email services. But for this to work you need to add custom URL's to the connect-src CSP entry.

This commit allows setting this and checks if the URL starts with https:// else it will abort loading.

Fixes #5290


🔄 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/5293 **Author:** [@BlackDex](https://github.com/BlackDex) **Created:** 12/14/2024 **Status:** ✅ Merged **Merged:** 12/15/2024 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `main` ← **Head:** `allow-custom-forward-api` --- ### 📝 Commits (1) - [`e59472b`](https://github.com/dani-garcia/vaultwarden/commit/e59472bbf9131cd17b942fa7d19d1dd3b4d02364) Allow adding connect-src entries ### 📊 Changes **3 files changed** (+22 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `.env.template` (+8 -0) 📝 `src/config.rs` (+11 -0) 📝 `src/util.rs` (+3 -2) </details> ### 📄 Description Bitwarden allows to use self-hosted forwarded email services. But for this to work you need to add custom URL's to the `connect-src` CSP entry. This commit allows setting this and checks if the URL starts with `https://` else it will abort loading. Fixes #5290 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2025-10-09 18:08:19 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#2616