Chrome extension fails CORS due to missing origin #1088

Closed
opened 2026-04-06 01:34:21 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @RaidAndFade on 6/22/2024

Subject of the issue

Latest version of chrome bitwarden extension requires cors header response, which current codebase does not do.

Steps to reproduce

Download bitwarden chrome extension, try to use vaultwarden as a backend, all POST requests fail due to missing ORIGIN header

Expected behaviour

expect bitwarden extension works

Actual behaviour

bitwarden extension receives data but cannot push any new information to vault

Troubleshooting data

origin header is of format
Origin: chrome-extension://nngceckbfpebfimklniiiawkandclblb
Code found at https://github.com/dani-garcia/vaultwarden/blame/main/src/util.rs#L133 to allow the domain as well as safari extension "file://" but not chrome-extension prefix. Believe some work is doable there.

*Originally created by @RaidAndFade on 6/22/2024* <!-- # ### NOTE: Please update to the latest version of vaultwarden before reporting an issue! This saves you and us a lot of time and troubleshooting. See: * https://github.com/dani-garcia/vaultwarden/issues/1180 * https://github.com/dani-garcia/vaultwarden/wiki/Updating-the-vaultwarden-image # ### --> <!-- Please fill out the following template to make solving your problem easier and faster for us. This is only a guideline. If you think that parts are unnecessary for your issue, feel free to remove them. Remember to hide/redact personal or confidential information, such as passwords, IP addresses, and DNS names as appropriate. --> ### Subject of the issue <!-- Describe your issue here. --> Latest version of chrome bitwarden extension requires cors header response, which current codebase does not do. ### Steps to reproduce <!-- Tell us how to reproduce this issue. What parameters did you set (differently from the defaults) and how did you start vaultwarden? --> Download bitwarden chrome extension, try to use vaultwarden as a backend, all POST requests fail due to missing ORIGIN header ### Expected behaviour <!-- Tell us what you expected to happen --> expect bitwarden extension works ### Actual behaviour <!-- Tell us what actually happened --> bitwarden extension receives data but cannot push any new information to vault ### Troubleshooting data <!-- Share any log files, screenshots, or other relevant troubleshooting data --> origin header is of format Origin: chrome-extension://nngceckbfpebfimklniiiawkandclblb Code found at https://github.com/dani-garcia/vaultwarden/blame/main/src/util.rs#L133 to allow the domain as well as safari extension "file://" but not chrome-extension prefix. Believe some work is doable there.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#1088