Content Security Policy of your site blocks some resources #6344
-
|
Hi All, I have a bit of an issue I could use some help with. I've spun up a vaultwarden container running behind Nginx. All functionality seems to be OK. I have a valid certs from Let's Encrypt, but I am still getting a "Not secure" warning in Chrome. Looking into "Privacy and Security" of developers tools shows:
Does anyone have any ideas what might be causing it? How to fix it? I looked for gstatic, And all CSP topics seem to point to a general flagging of the website by google. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Which functionality is 'OK' with a "not secure" warning in Chrome? In any case, this is usually caused by an overly aggressive reverse proxy configuration, which modifies/adds/removes the CSP headers. As demonstrated in the Vaultwarden wiki, the NGINX configuration must not modify these headers at all, since Vaultwarden will handle them itself. Can you post the relevant portions of your NGINX configuration? |
Beta Was this translation helpful? Give feedback.
-
|
What I meant with "Which functionality is 'OK'" is that it works, has a valid cert, syncs with my mobile and DIagnostics admin page is green, top to bottom. Here's my Nginx.config. I run it in a docker: |
Beta Was this translation helpful? Give feedback.
-
|
I'm not really understanding what the issue is here. Are there items which are not working? Since those resources shouldn't be part of the web-vault. There are a few fonts, but those are local in the web-vault. No CDN is used at all. It might be an extension? Or something else in-between? |
Beta Was this translation helpful? Give feedback.
-
|
It turns out it was Google flagging my site. I didn't get the usual red "unsafe website" warning, only the flag in the address bar, so initially I was thinking it was an issue with the certs and that connection was dropping to http. When I investigated I found the warning from my 1st post. Was very misleading. I only clicked it was Google, when my son tried logging and got the "Dangerous site" warning. I've submitted for a review and it's all good now. Thanks! |
Beta Was this translation helpful? Give feedback.
It turns out it was Google flagging my site. I didn't get the usual red "unsafe website" warning, only the flag in the address bar, so initially I was thinking it was an issue with the certs and that connection was dropping to http. When I investigated I found the warning from my 1st post. Was very misleading. I only clicked it was Google, when my son tried logging and got the "Dangerous site" warning. I've submitted for a review and it's all good now.
Thanks!