GitHub user dosubot[bot] added a comment to the discussion: If using a reverse proxy and finally accessing it with a domain name, some pages would report errors when accessed
<!-- Answer --> The "400 Bad Request" error you're encountering is likely due to misconfigurations in your reverse proxy setup, specifically related to handling HTTP and HTTPS requests. Here are a few steps you can take to resolve this issue: 1. **Check Nginx Configuration**: Ensure that your Nginx configuration correctly handles HTTPS requests. A common issue is incorrect headers, such as `X-Forwarded-Proto` and `X-Forwarded-Host`. Make sure they are set properly: ```nginx proxy_set_header X-Forwarded-Proto https; proxy_set_header X-Forwarded-Host $host; ``` Avoid including 'https://' in the `X-Forwarded-Host` header, as this can lead to redirect issues <sup>[[1]](https://github.com/apache/superset/discussions/32757)</sup>. 2. **SSL/TLS Configuration**: Verify that SSL/TLS is correctly configured in your reverse proxy. Ensure that the server block handling HTTPS requests is properly set up with the necessary SSL certificates. 3. **Redirects and Protocols**: Check if there are any redirects in your configuration that might be sending requests to HTTP instead of HTTPS. This can cause the "400 Bad Request" error if the server expects HTTPS. 4. **Superset Configuration**: Review Superset's configuration settings related to HTTP and HTTPS handling. Ensure that any settings related to protocol handling are correctly configured to match your reverse proxy setup <sup>[[2]](https://github.com/apache/superset/blob/master/docs/docs/configuration/configuring-superset.mdx)</sup>. By addressing these areas, you should be able to resolve the "400 Bad Request" errors when accessing Superset through a reverse proxy. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/0b608f91-2e99-4450-bbaa-312b67a1e9bc?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/0b608f91-2e99-4450-bbaa-312b67a1e9bc?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/0b608f91-2e99-4450-bbaa-312b67a1e9bc?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/0b608f91-2e99-4450-bbaa-312b67a1e9bc?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/0b608f91-2e99-4450-bbaa-312b67a1e9bc?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/0b608f91-2e99-4450-bbaa-312b67a1e9bc?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/0b608f91-2e99-4450-bbaa-312b67a1e9bc?feedback_type=other)</sup> GitHub link: https://github.com/apache/superset/discussions/33440#discussioncomment-13148238 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
