-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
devfile-registry: python-django app cannot preview #19459
Comments
Django replies with I disabled There is a PR che-samples/django-realworld-example-app#3 removing the middleware from Django sample. |
Since @vitaliy-guliy involved me, I'll chime in: IMO, the question is whether blocking usage in a frame is good security practice or not: we don't want to give a bad example. If that is so, the fact that it doesn't work in the preview is a feature, not a bug. If it's not security relevant, by all means let's |
The doc says that only With There is also a simple doc describing the logic of the module https://docs.djangoproject.com/en/1.11/_modules/django/middleware/clickjacking/ Trying with allow-all, just to test.. |
@tsmaeder it works fine with The PR che-samples/django-realworld-example-app#3 is updated |
I would not make any modifications on the original sample: the fork is just to prevent changes that may break our devfiles. the more we fork, the harder it would be to maintain. I would rather set xframe-options in the Che command as suggested in the description. |
Describe the bug
Python Django devfile cannot preview the application.
Che version
Steps to reproduce
set up venv
install dependencies
migrate
run server
Expected behavior
It should show the right page in the preview panel
Could be fixed by setting X_FRAME_OPTIONS to allowall.
Runtime
kubectl version
)oc version
)minikube version
andkubectl version
)minishift version
andoc version
)docker version
andkubectl version
)Screenshots
Installation method
chectl version
commandEnvironment
Eclipse Che Logs
Additional context
The text was updated successfully, but these errors were encountered: