-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
Subdomains support #194
Comments
I may not be understanding exactly what you're seeing, but I regularly use this on a subdomain, and haven't run into the issue. In my case trying to load things from the root domain without using the subdomain would utterly fail, so I think it's working correctly. But if you're still seeing the issue and interested in working on a solution, let us know. I'll leave this open for now, and if not, will probably close it out later. Thanks! |
I have the same issue as OP. I think this is a case where the Flask app is configured with eg SERVER_NAME=app.localhost, then all routes are served on subdomains using Flask's subdomain_matching and blueprints/routes configured on a subdomain. eg Hopefully that makes sense ... but can try to make a minimal code example if needed. If, in my flask app setup, I add the following code snippet (effectively duplicating from
TL;DR - can we pass Flask-DebugToolbar a list of subdomains to serve static assets from, and can Flask-DebugToolbar link to static assets using either: relative URLs, URLs that match the subdomain of the request being handled, or a specifically-configured subdomain? |
I have an issue with subdomain support. It seems that debug toolbar is always loading on the main domain but not the subdomains.
For example, if I have test.com, admin.test.com, and user.test.com. When I go to admin.test.com or user.test.com debug toolbar is loading all js, styles etc from test.com and if test.com is blocked it is not loading anything at all.
What will be good is that if I go to user.test.com it will load everything from it. If I go to admin.test.com it will load from it and when I go to test.com it will load from it.
I can work on pr for this just not sure what should be changed to support it and where?
The text was updated successfully, but these errors were encountered: