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

AllowedCorsOrigins contains invalid origin #5172

Closed
1 task done
GieltjE opened this issue Dec 20, 2024 · 1 comment
Closed
1 task done

AllowedCorsOrigins contains invalid origin #5172

GieltjE opened this issue Dec 20, 2024 · 1 comment
Labels

Comments

@GieltjE
Copy link

GieltjE commented Dec 20, 2024

Steps To Reproduce

Install server, use apache reverse proxy:

        RemoteIPHeader X-Forwarded-For
        RemoteIPInternalProxy 172.16.0.0/12
        RemoteIPInternalProxy 192.168.199.0/24

        ProxyAddHeaders Off
        ProxyPassReverseCookiePath / /
        ProxyPass / http://127.0.0.1:82/ retry=0
        ProxyPassReverse / http://127.0.0.1:82/
        ProxyPreserveHost On

Expected Result

Being able to log in through a browser.

Actual Result

2024-12-20 14:50:20.232 +00:00 [Error] Invalid client configuration for client "browser": "AllowedCorsOrigins contains invalid origin: https://bitwarden.example.org/"
2024-12-20 14:50:20.232 +00:00 [Error] No client with id '"browser"' found. aborting

Or

2024-12-20 11:03:03.036 +00:00 [Error] Invalid client configuration for client "web": "AllowedCorsOrigins contains invalid origin: https://bitwarden.example.org/"
2024-12-20 11:03:03.037 +00:00 [Error] No client with id '"web"' found. aborting

Screenshots or Videos

No response

Additional Context

It doesn't matter what value globalSettings__baseServiceUri__vault is set to (with or without trailing /)

Build Version

2024.12.1

Environment

Self-Hosted

Environment Details

  • Docker 27.4.1
  • Gentoo ~X64
  • Apache 2.4.62

Issue Tracking Info

  • I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.
@GieltjE GieltjE added the bug label Dec 20, 2024
@GieltjE
Copy link
Author

GieltjE commented Dec 20, 2024

After two days and a bug report, figured it out.

The "url: " in config.yml cannot contain a trailing / either.

@GieltjE GieltjE closed this as completed Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant