-
Notifications
You must be signed in to change notification settings - Fork 365
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
nginx: Mixed content without proxy headers #2853
Comments
Just curious - why can't you set those proxy headers? In the pwpush Docker container, could you set the environment variable Let me know. |
Hi, thank you very much. Our firewall vendor which we are using in our company does not offer to set these options: And this is our central reverse proxy / firewall. So we need to use this vendor / reverse proxy. FORCE_SSL: 'true' gives us ERR_TOO_MANY_REDIRECTS in chrome and edge. We have now tried
in different variants and only one setting at a time. FORCE_SSL: 'true' gives us ERR_TOO_MANY_REDIRECTS the rest of the options the Push It! Button tries to redirect to http instead of https. If we follow the chrome error message “Mixed Content: The page at 'https:// **************.de/' was loaded over HTTPS, but requested an insecure resource 'http:// .de/p/1eq/preview'. This request has been blocked; the content must be served over HTTPS” and replace http 'http:// .de/p/1eq/preview' with https everything is working. Even the link gets generated with https, only the PushIt! Button tries to go to http. Any ideas? If not we will discuss proxy_set_header X-Forwarded-Port $server_port; with our firewall vendor. |
Hi @DediCATeD88 - unfortunately that is all that exists for options to potentially fix it. The too many redirects likely means that the backend app is redirecting to HTTPs but the firewall is passing back HTTP again. Setting those headers would really be the best option if possible. |
Ok thank you we will check back with our firewall vendor |
Hi,
regarding this issue using nginx reverse proxy:
We are unable to set:
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Ssl on;
We set:
Via docker compose.
Unfortunately still no luck:
Mixed Content: The page at 'https:// **************.de/' was loaded over HTTPS, but requested an insecure resource 'http:// .de/p/1eq/preview'. This request has been blocked; the content must be served over HTTPS.
Any ideas?
Originally posted by @DediCATeD88 in #1193 (comment)
The text was updated successfully, but these errors were encountered: