-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
In HTTPS Change of data source not working on Table and Dashboards #8160
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
This issue is solved, I have missed roxy_set_header X-Forwarded-Proto 'https' header setting in nginx. |
@srikanth-reddy-m Do you have problem when selecting the datasource? |
@syazwan0913 This worked for me. # superset/config.py
ENABLE_PROXY_FIX = True
PROXY_FIX_CONFIG = {"x_for": 1, "x_proto": 1, "x_host": 1, "x_port": 1, "x_prefix": 1 |
@maltoze what is the version of superset you are using? |
@syazwan0913 I'm using 0.29. I also change this in my code. # superset/__init__.py
if app.config.get("ENABLE_PROXY_FIX"):
from werkzeug.middleware.proxy_fix import ProxyFix
app.wsgi_app = ProxyFix(app.wsgi_app, **app.config.get("PROXY_FIX_CONFIG")) related #8117 |
@maltoze alright I got it. Thanks |
@CaptainHoangLe are you using Nginx? can share your configuration? |
|
You need to add this line inside your Nginx config Also in
|
i have just done that but it can't help me to sloving this problem .i don't know where the error came from |
Have you try to run without Because mine having same problem as yours if using that config. |
i have tried but nothing changed. Can i see your nginx config? thanks |
Here is my working nginx config
|
thank you, i got it. this reason is config in nginx not apply when i change.Once again I thank you very much for your help |
A clear and concise description of what the bug is.
CodeBase: Master Branch
When trying to change superset data source from HTTPS it is trying to open Url in HTTP in which it is creating the error.
Error: Unsafe attempt to load URL, Domains, protocols, and ports must match
Expected results
It should load URL's with only HTTps
what you expected to happen.
Actual results
what actually happens.
Screenshots
![supersetImage](
)
If applicable, add screenshots to help explain your problem.
How to reproduce the bug
Environment
(please complete the following information):
superset version
python --version
node -v
npm -v
Checklist
Make sure these boxes are checked before submitting your issue - thank you!
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: