-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Debug toolbar doesn't works through browserify in a Docker Container #937
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
Comments
Debug toolbar
doesn't works through browserify
in a Docker Container
I'd try overriding |
which code did you use? |
I didn't, it was just a suggestion. Something like:
and
I'm not saying that's a good idea though -- the restrictions are there for a reason, and if ever the Debug Toolbar would be visible to arbitrary visitors you'd be exposing lots and lots of information about your setup. You should be really really careful. |
But this behaviour is very strange, i mean, in local environmet (not docker), Why have we use this little function for make work it? |
I get the same behavior through BrowserSync inside of a Docker container. Overriding the |
You can still see the debug panel in a docker container if you set up middleware to check |
@japrogramer how can it set up the middlerware in these way? |
like this, you might need to refresh the page for the first time landing on your site. Than after, DDT will be visible.
|
Is this still an issue when using the following in your settings? if DEBUG:
import socket # only if you haven't already imported this
hostname, _, ips = socket.gethostbyname_ex(socket.gethostname())
INTERNAL_IPS = [ip[: ip.rfind(".")] + ".1" for ip in ips] + ["127.0.0.1", "10.0.2.2"] |
I'm using
debug-toolbar
for debug my project but i have a problem using it throughbrowserify
.This is the normal behaviour:

As you can see
debug-toolbar
is working behind port3000
without problems.I had the problem with normal port, but i solved it like people said:
And the result is correct:

But through

browserify
it doesn't works:Why? Can anyone help to me?
The text was updated successfully, but these errors were encountered: