pallets-eco / pallets-eco/flask-debugtoolbar

Subdomains support

Open
#194 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
978
Forks
151
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Start by tracing how the debug toolbar builds URLs for its JavaScript and styles, then compare requests on test.com, admin.test.com, and user.test.com. Done means each hostname loads its toolbar assets from that same hostname, including when the main domain is blocked.

Written by the indexing model from the issue text.

Assessment

Tech stack
flask, javascript, python
Domain
devtools, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.