debug_kit icon indicating copy to clipboard operation
debug_kit copied to clipboard

DebugKit.safeTld complaining about full domains

Open boindil opened this issue 1 year ago • 2 comments

Hi,

I've just installed cakephp in version 5.0 fresh - however I've notices, that the setting DebugKit.safeTld doesnt seem to accept full domains. For us this doesnt make any sense since we dont have a local dev environment with such a domain.

Why not just accept a simple domain (e.g. testenv.cakephp.com)? I guess it would be pretty easy to implement and I dont see why only the actual last portion should be matched against ...

boindil avatar Jun 15 '24 09:06 boindil

Feel free to make a PR with suggested changes

dereuromark avatar Jun 15 '24 11:06 dereuromark

forEnable accepts a callable, so you can use 'forceEnable' => fn () => env('HTTP_HOST') === 'mydomain.com' to match a specific domain.

ADmad avatar Aug 09 '24 04:08 ADmad

This issue is stale because it has been open for 120 days with no activity. Remove the stale label or comment or this will be closed in 15 days

github-actions[bot] avatar Dec 08 '24 00:12 github-actions[bot]

This issue is stale because it has been open for 120 days with no activity. Remove the stale label or comment or this will be closed in 15 days

github-actions[bot] avatar Apr 09 '25 00:04 github-actions[bot]